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

which equation represents a linear function​
Please help asap for 50 points uwuOrder from least to greatest 0.81, \frac{4}{5}, 90%A: 0.81, 90%, \frac{4}{5} B: \frac{4}{5}, 0.81, 90%C: 90%, \frac{4}{5}, 0.8
What is the current scientific thinking about the information of the solar system?
simplify cot x * sin x
Math help..???? Please?
During the period 600 to 1000 AD, the greatest expansion of Islamic power occurred
15newtons is used to push a box along the floor a distance of 3 meters. How much work was done
What is the solution to the equation 1.25+r=4? A. R=2.75 B. R=3.75 C. R=5.25 D. R=5.75
the domain of y=cscx is given by x≠npitrue or false?​
How many total calories will you eat if the food you are eating has a serving size for 4 and the calories listed on the food label are 215?