读取名字和身高并显示信息

#include <stdio.h>

int main(void)
{
  const float INCHES_PER_FEET = 12;
  float height;
  char name[40];

  printf(What is your name?: );
  scanf(%s, name);
  printf(What is your height in inches?: );
  scanf(%f, &height);
  printf(%s, you are %.3f feet tall.\n, name, height / INCHES_PER_FEET);

  return 0;
}

相关文章

for遍历数组
。。。
声明一个计数循环
咕咕咕
#include <stdio.h> int main (void) { printf (&quo...