Ask Question
31 December, 10:38

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

+4
Answers (1)
  1. 31 December, 10:52
    0
    Long kg, g, mg;

    cin >> kg>> g >> mg;

    cout << kg*1000000+g*1000+mg;
Know the Answer?
Not Sure About the Answer?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers