Advertisement
Guest User

Untitled

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