Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

Write a C++ program that converts feet to inches.Prompt the user for feet and display the equivalent number of inches.Have your program repeat this process...

Write a C++ program that converts feet to inches.Prompt the user for feet and display the equivalent number of inches.Have your program repeat this process until the user enters 0 for the number of feet.

Answers


Davis
#include
using namespace std;
into main ()
{
double feet;
do{
cout << "Enter feet (0 to quit):";
cin >> feet;
court << feet * 12 << " inches\n";
} while ( feet !=0.0);
return 0;
}

Githiari answered the question on April 30, 2018 at 13:25

Answer Attachments

Exams With Marking Schemes

Related Questions