فایل متنی
فایل cpp
#include "stdafx.h"
#include "iostream"
using namespace std;
//alidoran
int main()
{
float cm, in;
cout << "please input your inch number:\t";
cin >> in;
cm = in*2.54;
cout << endl << in << " inch=" << cm << " cm"<<endl;
system("pause");
return 0;
}