Ask Question
29 June, 21:21

Write a program that reads values representing the weight in kilograms, grams, and milligrams and then prints the equivalent weight in milligrams

+2
Answers (1)
  1. 30 June, 00:00
    0
    Long kg, g, mg;

    cin >> kg>> g >> mg;

    cout << kg*1000000+g*1000+mg;
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program that reads values representing the weight in kilograms, grams, and milligrams and then prints the equivalent weight in ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers