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

Why is lewis Armstrong considered a jazz legend
Is this sentece punctauted correctly? i came home late; therefore, i didnt see aunt matildia
What is function in which the exponent is 3 called?
Which describes the items listed here? bifocal glasses lightning rod efficient stove daylight saving time
Penny sells knitted scarves for $12 each. The cost of the supplies to make each scarf x dollars. How much profit will Penny make if she sells y scarves? A) y(12
If point E is between points D and F and DE = 27 and EF = 34, find DF
About 43% of blood consists of red blood cells. True False
Solve for x: 4 =(–8)+ 3x
what is the equator of 40,075,000
A satellite of mass ms travels in a circular orbit of radius a around a planet of mass mp?ms. Part A Derive expressions for the orbital speed of a satellite. E