1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Olin [163]
4 years ago
9

rite a program that prompts the user to enter an integer and displays each of its numbers one by one.

Computers and Technology
1 answer:
LenaWriter [7]4 years ago
8 0

Answer:

#include <iostream>

using namespace std;

int main()

{

   int num;

   cout<<"Enter the integer: ";

   cin>>num;

   

   while(num>0){

       

       int rem = num%10;

       cout<<rem<<endl;

       num = num/10;

       

   }

}

Explanation:

First include the library iostream in the c++ programming for input/output.

Then write the main function and declare the variable.

cout is used to display the message on the screen.

cin is used to store the value in the variable.

then used the while loop and put the condition num>0

after that, take the reminder of the number by using the operator modulus '%'.

and then print it on the screen.

after that reduce the number by one digit.

This process continue until the condition not failed.

Therefore, the all digits of the number will be printed.

You might be interested in
As an IT technician, you are responsible for maintaining your company's laser printers. Recently, you read that laser printers h
nasty-shy [4]

Answer:

When the drums revolution is completed, the toner still remaining on the photoreceptor drum is cleaned by a plastic blade that is made of soft electrically neutral material which then deposits waste toner into a toner reservoir in the printer. The drum is then charged to become uniformly negatively charge by a rolling charger to prepare the drum for the beam from the laser.

Explanation:

8 0
3 years ago
Write 5 things that are key to writing a email.
Hitman42 [59]

Answer:

5 steps to writing an email-

Salutation

Subject

Professional

Sign

Keep it to the points

8 0
3 years ago
Which of the following techniques would a Baroque composer most likely employ to evoke an affect of agitation? Select one:
frez [133]

Answer:

b. Rubato tremolo

Explanation:

Tremolo is a modulation effect that imposes a rhythmic change in volume of sound. Once discovered in electric amplifier circuits, sound engineers and composers like the Baroque now use this low frequency oscillating modulation technique to create emotional piercing effect on their audience to maintain focus.

The low frequency tremolo can be gotten from the vibrating string in guitars, violins etc, and vocal sound, it is also produced from electronic devices created for its purpose. they are called optical tremolo.

5 0
4 years ago
Why does dns use udp instead of tcp? if a dns packet is lost, there is no automatic recovery. what are the consequences?
inysia [295]
<span>If a DNS packet using UDP is lost this problem must be handled at the application layer. If an answer is not received after some period of time the specific application may choose to resend the DNS query. I can go much more into detail but this should answer your question. If you need more detail just ask.</span>
6 0
3 years ago
Which shortcut key aligns to the center of a page
riadik2000 [5.3K]

Answer:

To make text centered, select and highlight the text first, then hold down Ctrl (the control key) on the keyboard and press E. To make text right aligned, select and highlight the text first, then hold down Ctrl (the control key) on the keyboard and then press R.

Explanation:

4 0
3 years ago
Other questions:
  • If you delete a view, account administrators can recover the view using the "trash can" function within how many days?
    7·2 answers
  • What is a single device that provides functionality of a printer, scanner, copy machine, and perhaps a fax machine called?
    6·1 answer
  • The _________keys include the home, end, and arrow keys.
    13·1 answer
  • Which option offers predesiged formatting and design elements to facilitate the process of creating a document?
    8·1 answer
  • Calculate the cash used to retire debt for each of the six months. Since the company can't pay down more debt than there is cash
    12·1 answer
  • Write a do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The user shoul
    13·1 answer
  • A remediation liaison makes sure all personnel are aware of and comply with an organization's policies.
    9·1 answer
  • The role of the
    5·1 answer
  • Provide examples of how information technology has created an ethical dilemma that would not have existed before the advent of I
    7·1 answer
  • 1. In platform construction, wall-framing members include sole plates,
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!