Write a program that prints yes if the given integer is divisible by 2 or 3 and no otherwise
Answers
Answered by
0
Answer:
Wrote it in C. Hope it helps
Explanation:
#include <stdio.h>
#include <stdlib.h>
main(){
int x;
printf("Give a number: ");
scanf("%d", &x);
if(x%2==0 || x%3==0)
printf("yes");
system("pause");
}
Similar questions