Public feed
#379417
/*var4.c - Program 2.4 */
#include <stdio.h>
int main(void) {
%
int age; /* User's age in years */
float hourly_wage; /* User's
hourly age in dollars. */
char gender; /* M or F */
/* Set the values. */
age = 40;
hourly_wage = 3.35;
gender ='F';
/* Print the variable values. */
printf("You are %d years old.\n",
age);
printf("Your hourly wage is
$%0.2f. This translates into
approximately $%0.2f per
year.\n", hourly_wage,
hourly-wage * 40 * 52);
printf("Your gender was listed as %c.\n", gender );
getchar(); /* Pause for User to press Return or Enter.*/
return 0;
}