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

What is square root of 126 + square root of 56 in standard form
Write an addition equation with a positive addend and a negative addend and a resulting sum of -8
What Was Jackson’s perspective on the McCulloch v. Maryland Supreme Court Case
16x^2-24x+7=0 equation and/or inequalities
If Olivia and Shawn have another child, which of the following genotypes is possible for the child? A. Mm only B. MM only C. MM or mm only D. MM, Mm, or mm
Which of the following did NOT grow or increase as a result of early farming? villages trade life spans cities
Solve the equation x=x+3
how do you solve m/9 divided by mn squared / 3
List the perfect squares between 100 and 500 that are even numbers
A six−sided die, with sides numbered 1,2, 3,4,5, and 6, is tossed. What is the probability of tossing a number less than three?