Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int SILNIA(int a);
- int main(){
- cout << SILNIA(0) << endl;
- cout << SILNIA(1) << endl;
- cout << SILNIA(2) << endl;
- cout << SILNIA(3) << endl;
- cout << SILNIA(4) << endl;
- cout << SILNIA(5) << endl;
- cout << SILNIA(6) << endl;
- cout << SILNIA(7) << endl;
- cout << SILNIA(8) << endl;
- }
- int SILNIA(int a){
- int b = 1;
- for (int i = 2; i <= a; i++) b *= i;
- return b;
- }
Advertisement
Add Comment
Please, Sign In to add comment