SHARE
TWEET

Untitled

a guest Apr 24th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top