+ 1

Please review .

#include <iostream> using namespace std; int main() { int x , m; cin>>x; while (x>=1) { m=x-1; x=x*m; } m=x; cout<<"factorial is "<<x; }

30th Jun 2017, 5:09 PM
Anupam Sharma
Anupam Sharma - avatar
3 Réponses
30th Jun 2017, 6:17 PM
khadeeja Shamna
khadeeja Shamna - avatar
+ 7
welcome 😊
1st Jul 2017, 5:44 AM
khadeeja Shamna
khadeeja Shamna - avatar
+ 2
thanks , I tried . and its working .
1st Jul 2017, 5:42 AM
Anupam Sharma
Anupam Sharma - avatar