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

is 0.025 greater than 0.052
A scientific hypothesis has two important qualities. The first is testable. What is the second?
Who discovered the first smart phone
what is the value of this expression 1/4−3 ? 12 1/12 64 1/64
Complete the sentence with the correct form of the verb SER. El Sr. Morales __________rubio.
solve |2x - 6| > 10 a. {x|x < -8 or x > 2} b. {x|x < -2 or x > 8} c. {x|-2 < x < 8}
what examines the culture, political systems, social systems, economic systems, and characteristics of various peoples --why they eat certain foods, practice a
why did the romans reject the etruscan monarchy and establish a republic
which policies would have received the most support from georgia's "malcontents"? a) policies that would allow trade with the spanish in st. augustine. b) polic
2. for what purpose did martin luther king, jr. write "letter from birmingham jail"?