Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int fakt(int x){
- int i,proizvod,n;
- proizvod=1;
- for (i=1; i<=x ; i++)
- {
- proizvod*=i;
- }
- if (proizvod>100)
- return 1;
- else
- return 0;
- }
- int main() {
- int a,b,i;
- scanf("%d%d", &a,&b);
- for (i=a;i<=b;i++)
- {
- if (fakt(i)==1)
- printf("brojot e %d", i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement