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

unit rate of 25 letters in 4 days
Describe the ancient Aztec game known as Ullamaliztli. How was it played? What are two ways that a player could earn points?
Why is it wise to shop around when you want to borrow money?
how is basalt created?
Two side lengths of a triangle are 17 meters and 12 meter long. What is the range of possible lengths for the third side?
After crossing a tall pea plant with a short pea plant, all of Mendel's pea plants were tall because it is the trait.
how did settlers in Texas react to the law of April 6 , 1830 (texas history)
PLEASE Help Me... How did this small state-- large state compromise guard against tyranny??? or How did The Great Compromise guard against tyranny??? please hel
Number the following steps of light reactions in the order in which they occur
WORTH 40 POINTS !!!!!!!! REALLY IMPORTANT!!!!!!!!!!!!!!!! How many feet do you have!!!!!!!!!!!!