Skip to content

Exponentation by squaring is an algorithm that will quickly calculate x^n given user input. x and n are integers in this case. This implementation uses recursion, whereby a function calls itself within it's own body. The answer is outputted on the console.

Notifications You must be signed in to change notification settings

smmcgrath/ExponentiationBySquaring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

ExponentiationBySquaring

Exponentation by squaring is an algorithm that will quickly calculate x^n given user input. x and n are integers in this case. This implementation uses recursion, whereby a function calls itself within it's own body. The answer is outputted on the console.

About

Exponentation by squaring is an algorithm that will quickly calculate x^n given user input. x and n are integers in this case. This implementation uses recursion, whereby a function calls itself within it's own body. The answer is outputted on the console.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages