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
Rufina [12.5K]
3 years ago
7

Write a statement that reads 5 successive integers into these variables that have already been declared : x1 x2x3x4 x5. Then wri

te a statement that prints each out on its own line so that they form a right-justified column with a 5-digit width. If any of the integers are 5-digits in size, then they will start at the very beginning of their lines. For example:|54213| 8713| 23| 147| 15cin >> x1 >> x2 >> x3 >> x4 >> x5;cout << setw(5) << right << x1 << "\n";cout << setw(5) << right << x2 << "\n";cout << setw(5) << right << x3 << "\n";cout << setw(5) << right << x4 << "\n";cout << setw(5) << right << x5 << "\n";
Computers and Technology
1 answer:
Triss [41]3 years ago
8 0

Answer:

The statement to this question can be given as:

Statement:

cin >> x1 >> x2 >> x3 >> x4 >> x5;

cout<<right;

cout << setw(5) << x1 << "\n" << setw(5) << x2 << "\n" << setw(5) << x3 << "\n" << setw(5) << x4 << "\n" << setw(5) << x5 << "\n";

Explanation:

In the question, it is given that there is 5 integer variable that is  x1, x2, x3, x4, and x5. In the above statement, we print the value of the integer variable and the right-justified column with a 5-digit width. In this statement first, we insert the value of the variables then we print the value in 5-digit width within its own line.

You might be interested in
. When you have multiple graphics positioned on a page, you can _______________ them so that they are a single graphic instead o
alisha [4.7K]
The best answer is B
i hope its help
8 0
3 years ago
How do ethics affect people?
Mnenie [13.5K]
People are affected because ethics are suppose to be moral
5 0
3 years ago
You could be electrocuted if you try to use water to put out a
Tanzania [10]
The answer is A. class C fire.

A class C fire involves energized electrical equipment.
Examples are: appliances, car motors, etc.
3 0
3 years ago
Read 2 more answers
Which cell formatting is most likely to use $?
TiliK225 [7]
Currency is the correct answer
4 0
3 years ago
Read 2 more answers
Which of these is NOT one of the main parts of an email?
slega [8]
I think the answer is c
3 0
3 years ago
Read 2 more answers
Other questions:
  • Using the ____ browsing mode offered by some browsers can prevent personal information from being left on a public computer.
    9·1 answer
  • How can people make sure they are using credit cards responsibly
    14·2 answers
  • Give an example of an app, website, or a game that used addictive design. Describe three features of addictive design it uses.
    11·2 answers
  • What does intergrated organization mean
    15·1 answer
  • Marys total out of pocket costbwere for the year​
    12·1 answer
  • Part 1: For this assignment, call it assign0 Implement the following library and driver program under assign0: Your library will
    5·1 answer
  • Consider the code fragment below. Show the values stored at each location in memory and as they change while the code executes.
    5·1 answer
  • You are implementing a new application control solution. Prior to enforcing your application whitelist, you want to monitor user
    5·1 answer
  • A python program for the following output using for loop.
    13·1 answer
  • Which family does Ms word 2007 belongs to?​
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!