Immediate Help!

Write a program that tells how many ones and how many tens are there in a number from 10-99;
example

the number 34 has 3 (tens) and 4 (ones)

??
34 / 10 = 3
34 & 10 = 4

The first line demonstrates integer division.
The second operation uses the modulo operator.

Research these concepts and use them in your program.
Last edited on
Topic archived. No new replies allowed.