subject

Using a while loop, create an algorithm extractDigits that prints the individual digits of a positive integer.
For instance, extractDigits(54321); would create the output:
1
2
3
4
5
Hint: The % and the / operators are going to be very useful in this program.
How can you use these to extract the last digit of the glven number?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 05:00
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
What is a sketch or blueprint of a web page that shows the structure (but not the detailed design) of basic page elements such as the logo, navigation, content, and footer?
Answers: 3
question
Computers and Technology, 24.06.2019 13:30
Which of the following is not a “fatal four” event?
Answers: 2
You know the right answer?
Using a while loop, create an algorithm extractDigits that prints the individual digits of a positi...
Questions
question
History, 13.11.2020 02:40
question
Chemistry, 13.11.2020 02:40
question
Computers and Technology, 13.11.2020 02:40
question
English, 13.11.2020 02:40
question
Computers and Technology, 13.11.2020 02:40
Questions on the website: 13722367