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

I need some help asap
The daily profit in dollars made by an automobile manufacturer is P(x) = -35x2 +2,100x - 20,000 where x is the number of cars produced per shift. Find the maxim
Can you please help? I sooo need an answer. what, in your opinion is a monster?
who were 2 leaders in the fight of women's suffrage
Help please and thank you
What is the slope and y-intercept of the equation on the graph? A. M=3/2,y-int=-3 B.m=3/2,y-int=3 C.m=2/3,y-int=-3 D.m=2/3,y-int=4
What does the election map of 1968 tell us about the results of the 1960 presidential election
Select the correct answer. What is the solution set of x2 + y2 = 26 and x − y = 6?
On Saturday dante cake recipe 3/4 cup of flour. But gray wants to make the cake half of the size that the recipe call for. How many flour should he use
Gould Corporation uses the following activity rates from its activity-based costing to assign overhead costs to products: Activity Cost Pool Activity Rate Setti