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

Is n = 4 a solution for x - 3 < 1 ? Explain why
I need help asap :)::):););)
51:14 If greenhouse gases in the atmosphere act like a blanket around the Earth, how is this "blanket" being changed by human activities?
What is the role of the emperor in modern Japan? a. elected leader b. symbolic leader c. military leader d. economic leader
What is the Area of the rhombus
How much energy is passed on to the next trophic level? *О1%се10%ооооО20%О100%​
find the perimeter of the figure 13cm, 15cm, 10cm, 10cm ,14cm
Latinos are an example of a racial group. O True O False
Use the drop-down menus and the image to complete these statements about prokaryotes. Prokaryotes a nucleus surrounding their chromosome of DNA. Prokaryotes a
Why do you think John Lewis and other leaders asked the marchers not to fight back against any violence?