| Current Path : /var/www/html/venkat/old/ |
| Current File : /var/www/html/venkat/old/iit2015004_1.c |
#include<stdio.h>
#include<stdlib.h>
int compnum(int x, int y)
{
int i,j,n=y,count=0;
for(i=x;i<=n;i++)
{
for(j=1;j<=n;j++)
{
if(i%j==0)
{
count++;
}
}
if(count>=3)
{
printf(" %d",i);
}
count=0;
}
exit(0);
}
void main()
{
int r1,r2;
printf("Enter the range of numbers \n");
scanf("%d %d",&r1,&r2);
compnum(r1,r2);
}