Compile online RUN offline!
SAVED SOURCE CODES
MANUAL PAGES & DOCS
WIN32 API MSDN
Latest Users' Questions
Question 1643 - f77 or g77, Name: yuv
Question 1642 - libgfortran-3.dll missing, Name: anon
Question 1641 - Soal, Name: Ghaderi
Question 1640 - result, Name: fran
Question 1639 - 600, Name: Aida
Latest Saved Source Codes
Source Code 32552 - 1234, Language: C/C++
Source Code 32551 - Save, Language: C/C++
Source Code 32550 - 231, Language: PASCAL
Source Code 32549 - 1231, Language: C/C++
Source Code 32548 - 123, Language: C/C++
User Submitted Question!
Name: queven luzon
there are 2.54 centimeters to the inch. write a program that asks you to enter your height in inches and then displays your height in centimeters.
It is inappropriate to ask someone to do your entire project for you. With that being said, I will assist you for this very simple project.
int main( int argc, char *argv)
// note that this expects the number of inches on the command line
if( argc != 2 )
printf("ERROR: Unexpected format/n Use the format: %s <number of inches>/n/n",argv);
result = (float) atof( argv ) * 2.54;
printf("%f inches is %f centimetersnn", atof( argv ), result);
** I didn't test this, but it is close if it doesn't already work.
Чо тут написано