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

PLEASE PLEASE PLEASE HELP!!!!
What is the alignment of the Earth, moon, and sun during a solar eclipse? Sun, Earth, moon Earth, sun, moon Earth, moon, sun Moon, sun, Earth
Find the area of the regular 20​-gon with radius 13 mm.
Which organelle does the krebs cycle take place?
Which Islamic empire is shown with each letter?? Letter a is Egypt Letter b is Persia
Combine the like terms to make a simpler expression: 4r+14-r-6
Which intrusive feature may start as a sill but, as more magma builds, it pushes upward like a lens?
Tornadoes are common in areas of flat plains because _____.
What is the sum of 6 pints and 4 cups?
Find the approximate side length of a square game board with an area of 122 in^2.