smilequi3272 smilequi3272
  • 04-07-2019
  • Computers and Technology
contestada

Write a recipe that stores the sum of the numbers 12 and 33 in a variable named sum. Have your recipe display the value stored in sum.

Respuesta :

PhantomWisdom PhantomWisdom
  • 12-07-2019

Answer:

#include<iostream>

using namespace std;

int main(){

   int sum = 12+33;

   cout<<"The sum is: "<<sum<<endl;

}

Explanation:

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

Then, create the main function and declare the variable sum as integer type and store the sum of two given values.

After that, display the result store in the sum variable on the screen by using the instruction cout.

Answer Link

Otras preguntas

PLEASE HELP What is the mode of the following set of numbers? 51, 73, 82, 51, 73, 103, 73, 125, 82, 125 51 73 125 82
Harry needs £400 to buy a new computer. He has saved £160 so far. What percentage has Harry saved
why is a conductor important in science terms
Which statement about the U.S. Constitution is true? A. It called for judges to be appointed for a limited term of office. B. It is an expanded version of Thoma
What is true about the sum of the measures of any two non-right angles in a right triangle?
The legs of an isosceles right triangle are 5 inches long. What is the length of the hypotenuse of the triangle to the nearest inch?
give the next term and the nth term of 8,13,18,23,28
what biome do we live in? Explain your answer.
What are the 5 Great Lakes?
Foods that allow microorganisms to grow are called parasites True Or False