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

3x+2y=38-6x + 4y= 28​
What is the first step to take when solving this linear system of equations by the addition-subtraction method? 2x + 4y = 3 x + 3y =13 A) solve for y in terms
What are birth control methods Looking or the meaning no examples also, birth control methods not birth controls.
Three criteria for effective taxes
HOMEWORK Solve. 3. Henry's desk is 1 meter long. His nametag is 8 centimeters long. Henry says his nametag is 7 centimeters longer than his desk. What error did
The graph shows that is translated horizontally and vertically to create the function .
Graph the line that contains this point (-1,-3) and has a slope of 1/3
Evaluate x-2 for x=8
Need help with this
Newspapers are sold daily in a wide variety of locations. This widespread distribution suggests that newspapers are classified as convenience goods. Thue or Fal