Connect with one of the following accounts


Please wait while we redirect...

Views: 137   

Following program shows you how to convert feet to inches.
In this program we get feet from user, we get those we need to multiply with 12 so that we get in inches

#include <iostream>
#include <math.h>

int main() {
    float feet;
    std::cout << "Please enter feet:";
    std::cin >> feet;
    float inches = feet * 12;
    std::cout << inches << " Inches";


Please enter feet: 15
180 Inches

On By

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News