Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Math_Power
- {
- class Program
- {
- static void Main(string[] args)
- {
- double n = int.Parse(Console.ReadLine());
- int power = int.Parse(Console.ReadLine());
- RaiseToPower(n, power);
- }
- static double RaiseToPower(double n, int power)
- {
- double result = 0;
- result = Math.Pow(n, power);
- Console.WriteLine(result);
- return result;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement