質問
char buf[80];
short num;
fgets(buf,sizeof(buf)-1,stdin);
num=(short)atoi(buf);
の fgets関数とatoi関数の使用法をおしえてください