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
r-ruslan [8.4K]
4 years ago
11

Write a C++ program that stores the integers 50 and 100 in variables and stores the sum of these two in a variable named total.

Display the total on the screen.
Computers and Technology
1 answer:
Troyanec [42]4 years ago
8 0

Answer:

Following are the program in c++

#include <iostream> // header file

using namespace std; // namespace

int main() // main function

{

int a=50,b=100,total; // variable declaration

total=a+b; // sum of the two variable a and b

cout<<"The total is:"<<total; // display total

return 0;

}

Output:The total is:150

Explanation:

In this program we have declared two variable i.e "a" and "b" of int type which store the value 50 and 10 respectively.After that we adding these two variable and store the sum in total variable finally display the total

You might be interested in
What is the function of a control unit?
nordsb [41]
The control unit (CU) is a component of a computer's central processing unit (CPU) that directs the operation of the processor. It tells the computer's memory, arithmetic/logic unit and input and output devices how to respond to the instructions that have been sent to the processor.
3 0
3 years ago
Explain how can you protect your computer from malware
rosijanka [135]
Trend micro security for your Mac or pc or trend micro mobil security for your android or iOS Mobil device?

Hope this helps!
6 0
4 years ago
Read 2 more answers
Antifreeze is not considered a hazardous waste by the EPA unless it is used or otherwise becomes contaminated.
Ahat [919]

False might be the answer

6 0
3 years ago
Read 2 more answers
Identify aspects of contemporary society that might lend themselves to a Commedia-type scenario or short play (ex: the British R
Helen [10]

Answer:

pls type clearly to understand i can't understand

4 0
3 years ago
If you're a beginner to data analysis, what is the first thing you should check when you build data queries?
Kobotan [32]
D. Record Counts, trust me I took notes on this and it’s also in my quizlet
6 0
3 years ago
Other questions:
  • I need some cool things to do with windows command prompt.
    13·1 answer
  • 3.5 Code Practice
    11·2 answers
  • 1. Do you consider Facebook, MySpace, and LinkedIn forms of disruptive or sustaining technology? Why?
    15·1 answer
  • Where is your network strongest? Where is it weakest? How have you developed your network thus far? How has that influenced who
    5·1 answer
  • C++ what is wrong with my equation?
    10·1 answer
  • It is illegal to have __________ emergency lights on your vehicle.
    6·2 answers
  • A(n) ____ is a front-end processor that multiplexes the traffic from hundreds of remote terminals into one port on a large compu
    10·1 answer
  • ETC = 220,000 PV = 25,000 AC = 40,000. What is EAC? What does this calculation tell you?
    5·1 answer
  • Write a program called DeliveryCharges for the package delivery service in Exercise 4. The program should again use an array tha
    9·1 answer
  • In the lungs,blood picks up carbon dioxide and releases oxygen true or false
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!