Sie sind auf Seite 1von 1

Student : Sofija Stavreska HW # 1 Solutions

Class : 9A

Problem3: Write a program that converts metres to feet and inches. Declaration : I solved the whole problem. Flowchart :

Code : #include <iostream> #include<windows.h> using namespace std; int main() { int me,fe,in; cout<<"Please enter the distance in meters :"; cin>>me; fe = me * 3.28; cout <<"The distance in feet equals : "<<fe<< endl; in = me * 39.37; cout <<The distance in inches equals : <<in<<endl; system("pause"); return 0; } Screenshot:

Das könnte Ihnen auch gefallen