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