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 estimate 208 + 569
list some ways a DNA strand is similar to a ladder
Who first explored the louisiana territory all the way to the pacific?
One angle of an isosceles triangle measures 100°. which other angles could be in that isosceles triangle? choose all that apply. 20° 30° 50° 40° submit
Sleeping is an effect of __________, but agitation may cause a person to wake up.
Which letter on the map represents the location of Puerto Rico?
What are some facts about cats that a very crucial to know? List as many as possible.
A good way to intensify meaning in the conclusion of a speech is to use _____. an example a long story
Which approach is a positive way to deal with conflicts? resorting to submission avoiding the situation accommodating others and ignoring your personal or work-
Mattie,Joel,and Oscar each ate 325 calories at lunch each day for 18 days.About how many calories did they eat in all