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