Advertisement
Guest User

Untitled

a guest
Oct 20th, 2018
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _07._Math_Power
  4. {
  5.     public class Program
  6.     {
  7.         public static void Main()
  8.         {
  9.             int number = int.Parse(Console.ReadLine());
  10.             int gradationNumber = int.Parse(Console.ReadLine());
  11.             int result = Gradation (number, gradationNumber);
  12.             Console.WriteLine(result);
  13.         }
  14.  
  15.         public static int Gradation(int number, int gradationNumber)
  16.         {
  17.             return (int)(Math.Pow (number, gradationNumber));
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement