squawk1738
27.06.2021 •
Computers and Technology
Write an algorithm and draw a flowchart to count the digits present in the given integer.
Solved
Show answers
More tips
- S Society and Politics Will Japan become Russia s Military Enemy?...
- P Philosophy Is Everything We Strive for Eventually Achieved and Destroyed?...
- S Society and Politics Understanding Politics and Its Role in the Development of Civilization...
- P Philosophy Why Did God Create Man and Place Him in Obscurity?...
- S Society and Politics Skoptsy: Who They Are and How They Perform Castration?...
- O Other Childhood Fears: What Many of Us Experienced...
- P Philosophy What is Something for you?...
- H Health and Medicine Why Do Humans Have One Heart?...
- P Philosophy Unbelievable stories of encounters with otherworldly forces...
- O Other How to Accidentally Get a Rare Coin with Your Change and How to Know Its Value?...
Answers on questions: Computers and Technology
- C Computers and Technology The network technician adds a new computer on the 10.254.254.0 network and configures a static IP address. But, the computer cannot communicate with other computers on the...
- C Computers and Technology Suppose end system A wants to send a large file to end system B. At a very high level, describe how end system A creates packets from the file. When one of these packets arrives...
- M Mathematics 2/3 of the product of 3/8 and 16...
- M Mathematics Can 1/5 be simplified....
- M Mathematics How do i find 1/3 of 12...
- M Mathematics 12 is 75% of what number?...
- E English When is prime time on television...
- C Chemistry What powers explosions and fire...
- M Mathematics 5.65 as a mixed number....
- M Mathematics 2.4% as a fraction and simplified...
Ответ:
The algorithm is as follows:
Input number
count = 0
while(number not equal 0)
number = number / 10
count = count + 1
end
Print count
Explanation:
This gets input for the integer number
Input number
This initializes count of digits to 0
count = 0
The following loop is repeated while number is not 0
while(number not equal 0)
This performs integer division of the number by 10; the resulting division is saved in variable number
number = number / 10
The count variable is incremented by 1
count = count + 1
The loop ends here
end
This prints the count of integers
Print count
See attachment for flowchart
Ответ:
I don't no the answer sorry