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

Consider the plot of f(x) = 10ˣ. Write the equation of line l.a) y = 10xb) y = 10ˣ+¹c) y = log(base 10)(x)d) y = log(base 10)(10x)
Have you ever suddenly lost the ability to do something? Maybe you were injured or sick, or missing something you needed. How did you feel about the situation?
please help. Just answer in an of the abcd options.
Suppose X is a random variable where P(X = x) = 1/6 for x in the set {1, 2, 3, 4, 5, 6}. What is E(X)? A) 3.5 B) 2.5 C) 4.5 D) 1.5
Which 2 numbers are greater than 3/5 1/4 , 0.68 , 2/3 , 0.599 , 1/2
definition for new south
One thousand tickets are sold at $1 each for a color television valued at $350. What is the expected value of the gain if a person purchases one ticket? a) $0.3
What is bondage and discipline? (B-D)
Name the changes of physical state when: oxygen gas is converted to liquid oxygen solid sulfur is converted directly to sulfur gas
Please help me with all ASAP I’ll mark u brainly