Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a, wynik=1;
- int SILNIA(int a){
- for(int i=a; i>0; i--)
- {
- wynik = wynik * i;
- }
- return wynik;
- }
- int main()
- {
- cout << "Podaj a: " << endl;
- cin >> a;
- cout << SILNIA(a);
- return 0;
- }
Add Comment
Please, Sign In to add comment