Advertisement
Josif_tepe

Untitled

Nov 18th, 2021
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int  fakt(int x){
  4.    int i,proizvod,n;
  5.    proizvod=1;
  6.    for (i=1; i<=x ; i++)
  7.    {
  8.        proizvod*=i;
  9.    }
  10.    if (proizvod>100)
  11.        return  1;
  12.    else
  13.        return 0;
  14. }
  15.  
  16. int main() {
  17.    int a,b,i;
  18.    scanf("%d%d", &a,&b);
  19.    for (i=a;i<=b;i++)
  20.    {
  21.        if (fakt(i)==1)
  22.        printf("brojot e %d", i);
  23.    }
  24.  
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement