Untitled
Anonymous
plain_text
10/22/2022 7:14 PM
188 B
18
Indexable
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a;
b = a;
c=1;
while (b>0){
c = c*b;
b-=1;
}
cout << c;
}Editor is loading...
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a;
b = a;
c=1;
while (b>0){
c = c*b;
b-=1;
}
cout << c;
}