Computer Science, asked by anudddm, 11 months ago

TRENDY NUMBERS
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 Non Trendy Numbers : 123, 653, 33, 4, 1034
Write a C program to find whether a given number is a Trendy Number or
not.​

Answers

Answered by amannishad0512p5zxh6
0

Explanation:

I m java learner, didn't know C.

but can tell you the logic part.

  • Count no. of digits of number n if 3 then satisy condition.
  • Extract middle digit,if previous condition is satisfied.

Similar questions