Find Special and Ordinary Number

#include
int main (void)
{
    int x;
    printf("Enter a number:\n");

    scanf("%d", &x);
    if(20%x==2 && 20%x==3&&20%x==4&&20%x==5&&20%x==6&&20%x==7&&20%x==8&&20%x==9||20%x==10);
    {
        printf("The number is special\n");
    }
     else
    {
        printf("The number is ordinary\n");
    }
    return 0;
}

0 comments:

Post a Comment