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