Patrick and Johnny successfully completed "Collect Flags I" game. The next level of "Collect Flags" game is to collect the flags that are placed in the path number which is either divisible by 2 or 3. Write a program that prints “yes” if the given integer is divisible by 2 or 3 and “no” otherwise. Can you help them to complete this level?
Input Format:
Input consists of a single integer.
Output Format:
Output consists of a single line. Refer sample output for the format.
Sample Input 1 :
21
Sample Output 1 :
yes
Sample Input 2:
19
Sample Output 2:
no
Program Code:
#include<stdio.h>
int main()
{
int n;
scanf("%d", &n);
if(n%2==0||n%3==0)
printf("yes");
else
printf("no");
return 0;
}
Baduk site! You may be wondering where you can enjoy the game properly. It is almost impossible for novice users to find a major Go site by looking at similar shapes and contents online, where there are many Go sites 바둑이사이트 The same goes for our pigs, we recommend only two places where you can play the representative Go game in Korea through the best verification system as a food verification site.
ReplyDeleteA game can be poorly made but it's not always the case where the game itself is bad. It could be where it was the wrong type of game for the wrong person. This is where the categories come in. Airsoft Judge
ReplyDeleteI wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts. situs judi bola
ReplyDelete