Articuno1514 Articuno1514
  • 04-02-2020
  • Mathematics
contestada

Write a program that accepts a whole number as Input multiplies that number by 12 the outputs the product

Respuesta :

KvngDami
KvngDami KvngDami
  • 05-02-2020

Answer:

Step-by-step explanation:

programs can be written in multiply languages. for this solution I'll be writing in C++.

#include<iostream> // this is called the preprocessor definition

using namespace std;

int main()                      //the main function

{

   int num, product;      //declaration of the variables

    cout << "enter the whole number";  

    cin >> num;

    product = num * 12;

     cout << product; // displaying the final results

     return 0;

}

Answer Link

Otras preguntas

Simplify (7-5i)(-3+9i)-(5+6i)^2
True or False along a divergent boundary, two plates slip past each other,moving in opposite directions.
What's a good slogan for a dietitian (have dietitian in it) ?
Which of the following is formed at a collision zone?Continental rift valleyVolcanic island chainMountain rangeDeep-ocean trench
a soccer team played 160 games and won 65% of them. how many did they win?
What culture believes health is harmony between man and nature?
sam cut a pie into equal parts.There are 3 slices left.The angle measures for 3 slices is 72.how many slices did he cut?
Why were the 1920's considered the best and worst of times?
What culture believes health is harmony between man and nature?
There is an inverse relationship between x and y. If y is when x is 3, what is x when y is 9? 3 5