Convert | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Convert

How to convert feet and inches in a c program

2nd Jul 2018, 9:19 PM
RaVon
RaVon - avatar
2 Answers
+ 2
Type this code into the C++ playground #include <iostream> using namespace std; int main (){ int foot, inches; cin >> foot; inches =foot * 12; cout <<foot<<" feet, is equal to "<<inches <<" inches "; return 0; }
2nd Jul 2018, 11:32 PM
Dlite
Dlite - avatar
3rd Jul 2018, 11:40 AM
hinanawi
hinanawi - avatar