/* CPE 101 Fall 2008 */ /* Alex Dekhtyar */ /* A simple program */ /* This is a comment! It ends here -> */ #include /* preprocessor directive */ #define KMPERMILE 1.6 /* preprocessor directive */ int main() { /* main() function: beginning */ int miles; /* integer variable declaration */ float km; /* float variable declaration */ printf("\n\nMiles2Kilometers'R'US!\n"); /* output */ printf("\n"); printf("How many miles? "); scanf("%d", &miles); /* input */ km = miles * KMPERMILE; /* assignment statement */ printf("%d miles is %f kilometers\n", miles, km); /* formatted output */ return 0; /* return statement */ } /* end of main() function */