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

A common Italian dish in Argentina are the gnocchi?
What is the value of C in the equation 2C +5(c - 5) =10?
Larissa hasn't had a good night's sleep in ages. She has tried everything she can think of: she leaves a nightlight on, she turns on a soothing television show
Hannah spent 40% of the money she earned last month. If she spent $50, what was the total amount of money that she earned babysitting last month
Maureen has renters insurance for her apartment. Maureen's insurance costs $228 per year. How much money should Maureen set aside each month to cover her renter
Carbon can be stored in all of earth's systems. true false
What are the three common forms for mining structured and unstructured data?
why its good to bring monkeys to the space
A model established by the relationships between the dependent variable(s) and the independent variable(s) is called a ___________.
If the function rule is 5x, what is the value when x = 3? 5 10 15 20