Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main () {
- cout << "Hello world MEINE FREUNDE!" << endl;
- int i,n,s;
- cout<<"Podaj ilosc liczb UZYTKOWNIKU ";
- cin>>n;
- i=1;
- s=1;
- while (i<=n)
- {
- s=s*i;
- i++;
- }
- cout<<"Oto twoja silna silnia z "<<n<<" liczb wynosi "<<s;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement