|
|
Take two numbers as input and determine whether
|
|
#include <stdio.h> int main(void) { int num1, num2; printf("\nEnter two numbers : "); scanf("%d%d", &num1, &num2); if(num1 % num2 == 0) { printf("\n%d is divisible by %d",num1,num2); } else { printf("\n%d is NOT divisible by %d",num1,num2); } return 0; } |
|
|
|
|
|
|
|