Question: Write a program in C LANGUAGE that accepts integer input. The numbers entered will be printed sequentially downwards with the following conditions: 1. If the
Write a program in C LANGUAGE that accepts integer input. The numbers entered will be printed sequentially downwards with the following conditions: 1. If the number is divisible by 2 or 3, then print TwoThree 2. If the number is only divisible by 2, then print Two 3. If the number is only divisible by 3, then print Three 4. In addition to the 3 conditions above, print in the order of the numbers
Example :
Input : 10
Result :
1
Two
Three
Two
5
TwoThree
7
8
Three
10
Thanks for your Answer, and please answer in code and little bit explanation are appreciated.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
