Computers and Technology

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?

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:30, nickddj12
Kyle, a receptionist for a building supply company, recently won an award for saving his company money on their phone system. after being presented with kyle's research, the company changed the way in which it made long-distance phone calls and cut their expenses in this area by 75 percent. the new system the kyle's company most likely adopted was wired communications switching stations voip hdtv
Answers: 3
image
Computers and Technology, 22.06.2019 16:20, kimmmmmmy333
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
image
Computers and Technology, 23.06.2019 14:30, officialrogerfp3gf2s
Select the correct answer. a company wants to use online methods to target more customers. it decides to conduct a market research by collecting the data of a few customers with their consent. they want to track data of the sites that their customers frequently visit. which software can the company? a. spyware b. bots c. adware d. trojan horse e. rootkits
Answers: 1
image
Computers and Technology, 24.06.2019 00:00, Amrinderkhattra
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
Do you know the correct answer?
Using a while loop, create an algorithm extractDigits that prints the individual digits of a positi...

Questions in other subjects:

Konu
Mathematics, 03.04.2020 01:57
Konu
Chemistry, 03.04.2020 01:57