E-BOX
BASICS OF C PROGRAMMING
Conditional Statements :- Code Analysis
PROBLEM - 9:
Mickey mouse
Mickey and Minnie are friends. Mickey wants to fly a balloon to Minnie. There were 50 hot balloons numbered from one. Each balloon will fly to a certain height. Only the numbers having 3 and 7 as its factors can fly upto the height of the Minnie's balloon. Mickey was confused and he didn't know the balloon with which number can fly to Minnie.
So write a C program to help the Mickey in finding the balloon.
Input format:
Inputs consists of a single integer which corresponds to number printed on the balloon. Assume that the input value is between 1 and 50.
Output Format:
Display whether the given Balloon will fly to Miney or Not.
[All text in bold corresponds to input and the rest corresponds to output]
Sample Input and Output 1:
Enter the Balloon's number:
42
This balloon can fly to miney.
Sample Input and Output 2:
Enter the Balloon's number:
24
This balloon cannot fly to miney.
SOLUTION :








