Recall

47 views 10:59 am 0 Comments March 3, 2023

Recall that when you apply the % operation, it will give you a remainder. For example: 43%10 produces 3 (because the remainder of 43 divided by 10 is 3) Also, recall that when you apply / on integers, it will do division but rounded down to the nearest integer. For example: 543/10 produces 54 (because 543 divided by 10 is 54.3 – this rounds down to 54) Use the modulo (%) and integer division (/) with 10 like above to write a program that asks the user for a 3-digit number then display each of the ones-place, tens-place, and hundreds-place of the number. The application output should look like: