Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static double Potega( double n, double m)
- {
- if(n < 0 || m < 0 ) return 9999999;
- double w = 1;
- for(int i = 0; i < m; i++)
- w*=n;
- return w;
- }
- static void Main(string[] args)
- {
- Console.WriteLine(Potega(2,0));
- Console.ReadKey(true);
- }
Add Comment
Please, Sign In to add comment