Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main(){
  4. int n,i;
  5. int m,wynik=1;
  6. if(n<m){
  7. printf("Podaj liczbe n: ");
  8. scanf(" %d",&n);
  9. printf("Podaj liczbe m: ");
  10. scanf(" %d",&m);
  11. for(i=n;i<m+1;i++)
  12. {
  13. wynik = i*wynik;
  14. }
  15. printf(" wynosi %d");
  16.  
  17. }
  18. else printf("Liczba n musi byc mniejsza niz m");
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement