Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int liczba;
  8. long long liczbaSilna = 1;
  9.  
  10. cout << "podaj liczbe: "; cin >> liczba;
  11.  
  12. for (int i = 1; i<=liczba;i++) liczbaSilna *= i;
  13.  
  14. cout <<"Liczba silna: "<< liczbaSilna << endl;
  15.  
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement