How to convert meter in centimeter in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to convert meter in centimeter in c++?

28th Sep 2018, 7:15 AM
Lorievelle Franco
Lorievelle Franco - avatar
3 Answers
+ 2
Same way you do it by hand. Use mathematics and multiply by 100
28th Sep 2018, 7:26 AM
Matthias
Matthias - avatar
0
what is the code, if you don't mind? thanks!
28th Sep 2018, 7:44 AM
Lorievelle Franco
Lorievelle Franco - avatar
0
int meters = 200; int centimeters = meters * 100;
28th Sep 2018, 8:12 AM
Sam Pache
Sam Pache - avatar