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

Explain the transition from the Roman society to medieval society. Politically, Socially, Religiously, and economically. How did this thing change Rome to a med
What is 14 49ths in simplest form
What is 7% tax on a $9.79 purchase
What is a good sentence for the word orbit?
What is a good sentence for the word orbit?
Explain the transition from the Roman society to medieval society. Politically, Socially, Religiously, and economically. How did this thing change Rome to a med
what is 2.5 % of 16 ?
what is 33 1/2 of 24 and 37 1/2 of 80 and finally, what is 66 2/3 of 45
List four methods that can be used to separate mixtures and give an example of each method?
what is 33 1/2 of 24 and 37 1/2 of 80 and finally, what is 66 2/3 of 45