Receive a number from the keyboard and tell you if it is divisible by 10, 5, 2 or if it is not
divisible by any of these.
Why this dont work?
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main()
{
int num;
printf("number: ");
scanf("%d", &num);
if (num % 10 == 0 && num%5 == 0 && num % 2 == 0)
printf("The number is divisible by...\n");
else
printf("Not....\n");
return 0;
}