Codeforces Round #422 (Div. 2), problem: (A) I’m bored with life Solution In C/C++

#include<iostream>
using namespace std;
int a,b;
int main(){
cin>>a>>b;
a=a<b?a:b;
for(b=a;–a;)b*=a;
cout<<b;
}

Leave a Reply

Your email address will not be published. Required fields are marked *