menu
Qammunity
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Write a program that reads values representing the weight in kilograms, grams, and milligrams and then prints the equivalent weight in milligrams
asked
Nov 5, 2019
81.0k
views
4
votes
Write a program that reads values representing the weight in kilograms, grams, and milligrams and then prints the equivalent weight in milligrams
Computers and Technology
college
JLundell
asked
by
JLundell
7.6k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
long kg,g,mg;
cin >> kg>> g >> mg;
cout << kg*1000000+g*1000+mg;
Sergio Bernal
answered
Nov 11, 2019
by
Sergio Bernal
7.2k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
No related questions found
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
Explain why binary codes are used to represent characters, numbers and symbols :)
What is an example of a dedicated computer system?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity