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

the graph below shows the distribution of students grades on their last math test. Based on the Empirical rule, what percent of students made.. *btwn 80 n 85 o
David helped his father stock the pond with baby catfish and blue gill. They put in a total of 75 fish. If the number of blue gill was doubled and the number of
graph y=3sinx and y=sin 3x on the same axes. label the graph of each function.
where did japan first expand its empire after 1930
Hello, I need help please for mission 3 thank you very much.
where did japan first expand its empire after 1930
simplify (1/x) + (1/(x+h)
Earth is a close approximation of a natural closed system.  What are some ways that living in a closed system affects each of us.
A particle travels in a circle of radius 82 cm and with a centripetal acceleration of 4.7 m/s2. How long does the particle take to complete one revolution?
Hello, I need help please for mission 3 thank you very much.