#include<stdio.h>
main()
{
int a[]={450, 540, 600, 755}, i;
int N, special, big, weird, scary;
printf("\nThe numbers which are SPCIAL BUT NOT SCARY are\n");
for(i=0;i<4;i++)
{
N=a[i];
special=(N%15==0);
big=(N>999);
weird=(N%5==0)&&(N%6==0)&&(N%18!=0);
scary=big||weird;
if(special && (!scary)) printf("%d\n", N);
}
}
0 comments:
Post a Comment