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