BUPT-homework/semester1/pset1/2-stdio.c

17 lines
300 B
C

#include <stdio.h>
int main(void) {
// initialization
char sex;
int age;
float height;
// get input from stdin
scanf("%c %i %f", &sex, &age, &height);
// print answer to stdout
printf("The sex is %c, the age is %i, and the height is %f.", sex, age,
height);
return 0;
}