Answer to Question #13781 in C++ for shalenee

Question #13781
(Conversions from kilograms to stones) A stone is British measurement of mass that equals 6.35 kilograms. Write a program that displays the conversion to stones for every kilogram value from 1 to 199 in a table.
Kilograms Pounds
1 2.2
3 6.6
...
197 433.4
199 437.8
1
Expert's answer
2012-08-30T09:19:49-0400
#include "iostream.h"
void main(){
cout<<"kilograms stones\n";
for (int i=1;i<200; i++)
& cout<<i<<"& quot;<<i/6.35<<"\n";
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS