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 is 2[18-(5+3^2)÷7] in the distributive way
In the United States, women earn 77 cents for every dollar a man earns. Please select the best answer from the choices provided. T F
An architect designs a diagonal path across a rectangular patio. The path is 29 meters long. The width of the patio is x meters, and the length of the path is 5
What were the state governments like after the revolutionary war
Rachel is drunk and her friends dare her to kiss a guy across the bar. instead of thinking about the potential consequences of the action, rachel makes a quick
round 7463 to 2 significant figures
All the following are effective ways of managing food wasts EXCEPT? A. providing quick reference guides for chefsB. keeping food-waste logsC. penalizing servers
Compare and contrast tidewater and piedmont farmers
how to format an APA paper set it up
its due tomorrow need help!!