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
In Windows 7's Jump List, what can we do?
olga_2 [115]

Answer:se muestran los documentos recientes, la de iTunes muestra links para abrir la iTunes Store o reproducir toda nuestra colección, etc

Explanation:

4 0
3 years ago
Which algorithm is the oldest of the tcp/ip symmetric-key algorithms?
ohaa [14]
Data Encryption Standard, or DES. 
6 0
4 years ago
Based on a kc value of 0.150 and the data table given, what are the equilibrium concentrations of xy, x, and y, respectively?
lidiya [134]

If the solution process is endothermic, then an increase in temperature usually results in an increase in solubility. Their heat of reaction is usually positive. The rest of the choices do not answer the question above.

4 0
3 years ago
Clarissa is a computer programming consultant. When a client states that they have an extremely complex programming task, which
Ann [662]

Answer:i think its D it makes more sense also can i get brainliest

Explanation:

5 0
3 years ago
Read 2 more answers
Pls help!!
alexira [117]

Answer:

4.24

Explanation:

First you find the mean of the data set, which is 7. Then to find standard deviation you have to follow the formula which tells you to subtract the mean from each number under the square root : √(2 - 7)^2 + (9 - 7)^2 + (10 - 7)^2 + (4 - 7)^2 + (8 - 7)^2 + (4 - 7)^2 + (12 - 7). Once you solve the parenthesis you square it, once you square it the negatives won't matter. That will leave you with this : √(25 + 4 + 9 + 9 + 25). The formula tells you to find the sum of those numbers (which is 72) then subtract one from how many numbers there are, 5 - 1 = 4, and divide your sum by that number. So 72 / 4 = 18. Then you find the square root of 18 and that becomes your answer.

7 0
2 years ago
Other questions:
  • 2.Write an if /else if statement that carries out the following logic. If the value of variable quantityOnHand is equal to 0, di
    8·1 answer
  • Write a function solution that returns an arbitrary integer which is greater than n.
    13·1 answer
  • -Another question involving microsoft word-
    11·1 answer
  • Which social network site has 1.5 billion actives users per month?
    15·1 answer
  • Give three facts about the history of the train shongololo
    9·1 answer
  • Which IEEE standards define Wi-Fi technology?
    10·1 answer
  • Which of the following access control techniques allows the user to feel empowered and able to change security attributes?
    5·1 answer
  • Which of the following is considered an integrated software system? a) Material requirements planning systems (MRP I) b) Manufac
    14·1 answer
  • PLZ HELP What will be the output? class num: def init (self.a): self. number = a mul* __(self. b) return self. number + b. numbe
    7·1 answer
  • Python: Write a program for a small restaurant that sells pizzas. You may consider it as a prototype of a realistic online appli
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!