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

Passes through (0, -4) and (-4,5)
The mean daily rainfall in Los Angeles in December is 0.05 inches with a standard deviation of 0.02 inches. What is the probability that the total rainfall in L
help pls click on pic
Which of the following statements regarding the characteristics of migrants is correct? A. Most migration is international B. Most migrants remain in the same c
What is y when x = 1?
3. Change 53/50 to thousandths
Aman is paid $9.60 per hour for a 40 hour week and he is paid at a time and - a - half for overtime.Find how many hours of overtime he worked when his wage for
What are the products of photosynthesis? A) Lipids and a molecule essential for lactic acid fermentationB) Carbohydrates and a molecule essential for aerobic ce
Based on the visible cell structures, which of the following statements is true? All of the cells are plant cells. All of the cells have chloroplasts. All
guess what i was for halloween and ill give Brainliest hehe