# include <iostream.h>
int main( )
{
float inches, cm ;
cout<< " Enter length in inches : ";
cin >> inches;
cm = 2.54 * inches ;
cout <<inches <<" inches = " << cm << " centimeters . \n ";
return 0;
}
Labels: C++ Basic Codes, C++ Codes
Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies| |
---|
0 comments:
Post a Comment