Write a c++ program to find area of a room in m2 if its length are given in feet | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Write a c++ program to find area of a room in m2 if its length are given in feet

24th Jul 2017, 12:21 PM
AdityaSingh
3 Answers
+ 1
You can convert from m to feet or from feet to m. Convert from feet to m, it is easier. 1 feet is 0.3048 meter. length*length*0.3048 would be so.
24th Jul 2017, 12:30 PM
Ferhat Sevim
Ferhat Sevim - avatar
+ 1
We are not here to do your homework. Q&A is here so we answer the given question, not give you full code.
24th Jul 2017, 12:38 PM
Jakub Stasiak
Jakub Stasiak - avatar
0
First of all, what Jakub said - the community is not here to do your homework :D Secondly, I am amazed that Ferhat's answer was accepted as best - that conversion is incorrect... :) (1 ft = 0.3048m, true - but that's the only correct part ;) )
24th Jul 2017, 2:41 PM
Bogdan Sass
Bogdan Sass - avatar