Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main(){
- int n,i;
- int m,wynik=1;
- if(n<m){
- printf("Podaj liczbe n: ");
- scanf(" %d",&n);
- printf("Podaj liczbe m: ");
- scanf(" %d",&m);
- for(i=n;i<m+1;i++)
- {
- wynik = i*wynik;
- }
- printf(" wynosi %d");
- }
- else printf("Liczba n musi byc mniejsza niz m");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement