BUPT-homework/pset1/2-stdio.c
2021-09-23 16:18:59 +08:00

17 lines
280 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;
}