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

What was the South’s greatest concern when California applied for statehood?
2-3 facts about Warsaw Pact
What are the characteristics of mass culture?
What is the probability of someone correctly guessing your Social Security number? (Assume all digits 0-9 are available for use)a
What are the operation sines that make this statement correct? 3_5_7_18_3=14
take 2 identical bowls filled with water.shine a spotlight on one and place one away from the spotlight in the same room. which shows higher evaporation and why
If 52 x equals 7800 y what does 1 x equal? What is the maths equation?
If 52 x equals 7800 y what does 1 x equal? What is the maths equation?
The Habsburg Empire did all of the following EXCEPT A. take control of Hungary, Croatia, and Slovonia. B. lose their Holy Roman Empire in Germany. C. remain a c
What was the South’s greatest concern when California applied for statehood?