#include <bits/stdc++.h> using namespace std; int fungsi(int x){ if (x == 0){ return 0; } else return x * fungsi (x-1); } int main() { int b; cin >> b; cout << fungsi(b); }
Standard input is empty
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!