介绍C语言输入输出函数。其标准库为<stdio.h>,程序中引入需要:

#include <stdio.h>

函数说明
getchar()函数从键盘(stdin标准输入)上读取一个键并返回该键的键值。
putchar()函数
在屏幕上输出一个字符。
printf()函数
格式化输出字符串。