// Lab04_3.cpp : Defines the entry point for the console application.
//
#include
using namespace std;
void main()
{
double foot, inch;
double foot1, inch1;
// INPUT
cout << "Enter the value\n";
cout << "Foot : ";
cin >> foot;
cout << "Inch : ";
cin >> inch;
cout << "Foot is : " << foot << endl;
cout << "Inch is : " << inch << endl;
// Process
foot1 = 30.48 * foot;
inch1 = 2.54 * inch;
// OUTPUT
cout << "Vaule Centimeter is ";
cout << " " << foot1;
cout << " and " << inch1;
cin.get();
cin.get();
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น