Advertisement
Qrist

Math Power

Apr 16th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.     public static void Main(string[] args)
  6.     {  
  7.         double one = double.Parse(Console.ReadLine());
  8.         double two= double.Parse(Console.ReadLine());
  9.         double result = Power(one, two);
  10.         Console.WriteLine(result);
  11.  
  12.     }    
  13.     public static double Power(double a,double b)
  14.     {
  15.         return Math.Pow(a, b);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement