InterviewSolution
| 1. |
A number is said to be a trendy number if and only if it has 3 digits and the middle digit is divisible by 3. Examples of trendy numbers: 131, 264, 999 examples of nontrendy numbers : 123, 653, 33, 4, 1034 write a program to find whether a given number is a trendy number or not. Input format: input consists of a single integer. Output format: refer sample output for details. Sample input 1: 791 sample output 1: trendy number sample input 2: 3 c program |
|
Answer» am to check whether a given number is a Trendy Number or Not.Language used : C programming.Program :#include |
|