Problems

# Степінь числа

published at 4/9/21, 11:48:34 am

a = int(input()) n = int(input()) print(pow(a, n))

published at 7/24/21, 6:51:19 pm

# include <bits/stdc++.h>

using namespace std;

int main() { long long a,n; cin>>a>>n;

cout<<pow(a,n);

return 0;


}

published at 9/24/22, 10:56:48 pm

using System;

class Program { static void Main(string[] args) { long a, n, t; a = Convert.ToInt64(Console.ReadLine()); n = Convert.ToInt64(Console.ReadLine()); t = a; for(int i = 1; i < n; i++) { a *= t; } Console.WriteLine(a); } }

published at 9/24/22, 11:03:51 pm

# include <iostream>

using namespace std;

int main() { long a,n,t; cin >> a >> n; t = a; for (int i = 1; i < n; i++) { a *= t; } cout << a; }

published at 1/9/23, 9:01:53 am

# include <iostream>

using namespace std; int main() { long long a,b; cin>>a>>b; long long c=a; for (int d=1;d<b;d++) { a*=c; } cout<<a; }

published at 1/20/23, 2:10:09 am

# include <cmath>

using namespace std; int main() { long long a,b; cin >> a >> b; cout << pow(a, b); }

published at 2/6/23, 2:12:39 pm

# include <stdio.h>

main() { long long int a, b, c=1; scanf("%lld %lld",&a, &b); for(int i=0 ; i<b ; i++){

c=c*a;


} printf("%d", c);

}