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
svetlana [45]
3 years ago
11

Assume that the following variables have been defined in a program: int x = 10; int y = 20; int z = 30; Write a cout statement t

hat displays the sum of the variables x, y, and z.
Computers and Technology
1 answer:
Drupady [299]3 years ago
7 0

Answer:

The program to this question as follows:

Program:

#include <iostream> //defining header file

using namespace std;

int main() //defining main method

{

int x = 10,y = 20,z = 30; //defining integer variable and assigning the value

int sum;//defining integer variable sum  

sum =x+y+z;//adding value,that holds by sum variable  

cout<<"sum: "<<sum; //print value

return 0;

}

Output:

sum: 60

Explanation:

Description of the above code as follows:

  • In the above code three integer variable "x, y, and z" is declared, that initialized with the value, that is 10, 20, and 30.
  • In the next line, another variable "sum" is declared, that holds the above variable value and add the number.
  • Then the print function "cout"  is used, which prints sum variable value.
You might be interested in
Which of the following best describes the purpose of a design specification?
katovenus [111]

Answer:

A design specification is a detailed document providing a list of points regarding a product or process. For example, the design specification could include required dimensions, environmental factors, ergonomic factors, aesthetic factors, maintenance that will be needed, etc

Explanation:

please mark me as the brainliest answer and please follow me

6 0
3 years ago
Which statement correctly differentiates how to use list and table styles?
irina [24]
What statement please explain correctly
5 0
3 years ago
Read 2 more answers
Alcohol first impairs your ____?
NemiM [27]
Alcohol first impairs your judgement 
5 0
3 years ago
Read 2 more answers
Which tab is used to configure an export to PST in Outlook 2016?
Blizzard [7]

Answer:

file

Explanation:

you should go through the file so as to configure it

3 0
4 years ago
Read 2 more answers
Which of the following is the java keyword used to declare a class
tekilochka [14]
Class is the java keyword used to declare a class
6 0
3 years ago
Other questions:
  • I need the alphabet quickly! sorry bad with remembering!
    10·1 answer
  • All of the following are recommended to secure a wireless network EXCEPT:
    5·2 answers
  • You have just installed a SOHO router in a customer's home and the owner has called to say his son is complaining that Internet
    5·1 answer
  • Your teacher needs to keep track of a biology experiment's results for all students, to
    7·2 answers
  • Help me for this question
    8·1 answer
  • sara has just started using the Internet. She would like to be more efficient . In 3-4, give sara some advice about how to be mo
    5·1 answer
  • You have a computer at home. The computer is connected to the Internet through a dial-up connection. Every time you connect to t
    7·1 answer
  • Que quiere decir analogico
    6·1 answer
  • What tool is used to edit pre-existing range names? (check all that apply)?
    10·1 answer
  • There is a group of 10 people who are ordering pizza. If each person gets 2 slices and each pizza has 5 slices, how many pizzas
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!