Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7211 - Тооны зэргийн хүрд

a тооны n хүртэлх зэрэгтүүдийг жишээн дээрх хэлбэрээр хэвлэ.

Input

a, n натурал тоонууд нэг мөрөнд нэг зайгаар тусгаарлагдан өгөгдөнө. (a,n<10)

Output

Зэргийн хүрдийг хэвлэ.

Example

Input:
3 5

Output:
3^1=3
3^2=9
3^3=27
3^4=81
3^5=243

Нэмсэн:Bataa
Огноо:2011-06-21
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2023-01-11 14:17:53
there is nothing down there








































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































2022-12-30 09:08:22






































































huulha boli























































































































guij bn chinii amidarliin tuluu














































































































































































































tam ruu ga ochooroi
2022-11-10 06:50:21
boloroo


Last edit: 2022-11-10 06:51:03
2022-11-09 17:49:09
marlaa sain bod2
2022-10-26 09:38:42
hello
2022-10-20 10:37:09
#include <iostream>
using namespace std;

int main() {
int a, n;
cin>>a >> n;
if (n >= 1)
cout<<a << "^1=" << a <<endl;
if (n >= 2)
cout<<a << "^2=" << a*a <<endl;
if (n >= 3)
cout<<a << "^3=" << a*a*a <<endl;
if (n >= 4)
cout<<a << "^4=" << a*a*a*a <<endl;
if (n >= 5)
cout<<a << "^5=" << a*a*a*a*a <<endl;
if (n >= 6)
cout<<a << "^6=" << a*a*a*a*a*a <<endl;
if (n >= 7)
cout<<a << "^7=" << a*a*a*a*a*a*a <<endl;
if (n >= 8)
cout<<a << "^8=" << a*a*a*a*a*a*a*a <<endl;
if (n >= 9)
cout<<a << "^9=" << a*a*a*a*a*a*a*a*a <<endl;
if (n >= 10)
cout<<a << "^10=" << a*a*a*a*a*a*a*a*a*a <<endl;
return 0;
}
2022-10-16 03:03:56
huultsgaa boiiis
#include<iostream>
using namespace std;
main(){
int a,b,c,d,i,s,n,z,q;
cin>>a>>n;
s=1;
for(i=1;i<=n;i++){
s=a*s;
cout<<a<<"^"<<i<<"="<<s<<endl;
}
}
2022-10-13 04:19:07
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,s,i;
cin>>n;
s=1;
for(i=1;i<=n;i++){
s=s*i;
cout<<i<<"!"<<"="<<s<<endl;
}

}
2022-10-13 03:50:28
#include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,n,c=1;
cin>>a>>n;
for(b=1; b<=n; b++){
c=c*a;
cout<<a<<"^"<<b<<"="<<c<<endl;
}
}
2022-10-12 10:10:52

int nu1,nu2,b=1;
Scanner scan= new Scanner (System.in);
nu1=scan.nextInt();
nu2=scan.nextInt();
int c=nu2;
for(int i=1 ;i<=nu2;i++)
{
c--;
for(int a=c;a<nu2;a++)
{
b=b*nu1;
}
System.out.print("\n"+nu1+"^"+i+"="+b);
b=1;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.