How to write exponent in racket?
Use the primitive function expt (see reference):
Use the primitive function expt (see reference):
The C# language doesn’t have a power operator. However, the .NET Framework offers the Math.Pow method: Returns a specified number raised to the specified power. So your example would look like this:
To do this with user input:
To do this with user input: