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 are temperature lines and Illumination zones? ​
You visit an animal shelter and are in a financial position to either adopt a single dog for $500 or donate the $500 to marginally improve the welfare for all
A fee for instruction
x = 22 + 10x How to find x?
given 2x-3 and x+4 are the only factors of q(x), find q(x)
4. Which element is highly reactive: Sodium, Helium, or Chlorine? 5. Why is Helium considered an unreactive element? 6. What determines an element's' chemical p
Do I need to flip my sign? 2x -3y≥12​
1. Factor the poynomial into linear irreducible factors. a) f(x)= x^4+11x^2+30 b)f(x)= x^4-9
A batter hits the a baseball so that it leaves the bat with an initial speed 37mps at an angle of 53degree find the position of ball after 2 second
Convert the fraction to a decimal.[tex] \binom{2}{5} [/tex]​