#include <iostream> using namespace std; class Feet2Meter { float feet, meter ; public: void GetFeet(); void Conversion(); void print(); }; void Feet2Meter::GetFeet() { cout << endl << "Enter distance in feet:" ; cin >> feet ; } void Feet2Meter::Conversion() { meter = 0.3048*feet ; } void Feet2Meter::print() { cout << endl << "Distance in feet=" << feet << endl << "Distance in meter=" << meter ; } int main() { Feet2Meter f; f.GetFeet(); f.Conversion(); f.print(); return 0; }
C and C++ programs, games, softwares. Easy programming guide. Learn to code and enjoy coding in CoderNepal
Home » Feet to Meter
Feet to Meter
This is the solution to convert Feet into Meter
Subscribe to:
Posts (Atom)
No comments:
Post a Comment