• С помощью цикла for написать программу возведения числа А в целую степень N. На языке C#.

Ответы 2

  • https://znanija.com/task/28606033
  • using System;class Program {    static void Main() {        Console.Write("a= ");        string sa = Console.ReadLine();        double a = Convert.ToDouble(sa), b = 1;        Console.Write("n= ");        string sn = Console.ReadLine();        int n = Convert.ToInt32(sn);       for(int i=0;i<n;i++) b *= a;        Console.Write(b); Console.Read();    }}
    • Автор:

      topazhvpc
    • 6 лет назад
    • 0
  • Добавить свой ответ

Войти через Google

или

Забыли пароль?

У меня нет аккаунта, я хочу Зарегистрироваться

How much to ban the user?
1 hour 1 day 100 years