0

Factorial

I want to know source code of factorial in C++

8th Jun 2017, 8:51 AM
Omari Salimu
Omari Salimu - avatar
2 ответов
8th Jun 2017, 10:57 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 9
int num; int result = 1; cin >> num; for (int i = 1; i <= num; i++) { result *= i; } cout << result;
8th Jun 2017, 9:03 AM
Hatsy Rei
Hatsy Rei - avatar