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

how to solve 3/4 = 8/x-1
why did general MacArthur address congress after he was fired.?
whats the answer for -9x+1=-80 ? show work please
Which of the following is not a famous Spanish artist?a.Kahloc.Goyab.Picassod.Dalí
What is the expanded form for 6.324
How do you solve this problem 9a+10(6a-1)
how do I round off 248,739 to the nearest hundred?
when you convert 100 feet per second to inches per second will there be more or less then 100 inches expain
A mobile phone company offers two monthly calling plans, A and B. Under A, every minute costs $ 0.10. Under B, the first 100 minutes costs $ 12 and every extra
A somatic cell of the common octopus (Octopus vulgaris) has 56 chromosomes. What number of chromosomes will an octopus gamete contain? A. 14 B. 28 C. 56 D. 112