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, I need Answers quickly.
What is one example of mixed culture between the Europeans and the Natives?
Algebra help please?
In 2012 five U.S stamps cost $ 2.20 how much did seven stamps cost
Evaluate the numerical expression. −8.1 – 3.5 ÷ (−0.5)
The points (-2,9) and (2,r) lie on a line with slope -3. Find the missing coordinate r
Ann is a 17 year old female who is sexually active and proud of it. When asked about how she protects herself against sexually transmitted diseases, she says th
A court document is an example of a secondary source. True or False
12 POINTS PLZ help How does radiation differ from conduction? A. Radiation can move through empty space to transfer heat; conduction cannot.  B. Radiation needs
Which graph represents the polynomial function g(x)=x^3+x^2-17x+15