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

Type of democracy where citizens are involved in day-to-day government
How do behavioral choices and lifestyles impact health?
Guys ive been bullied alot today. can i get your love and support plzz i have no friends
b. Find the solution to each equation. Explain or show your reasoning. c. What does each solution tell you about its situation?
I need to get a new game Box 9000 but the system cost 400 and he didn’t have any money at all what is the theme of the story
What is your biggest fear? hehehe
Can someone help me please ?!?
What did Spain gain from helping the Americans win the Revolutionary War? A. Ransom from the families of British prisoners B. New colonies on the African contin
Solve the equation for the individual variable. P= W/t, for t A.) t = P/W B.) t = P - W C.) t = W/P D.) t = PW
A Corsa accelerates from 15 ms-1 to 25 ms-1 in 8.0 s. Calculate the acceleration.