#include<stdio.h>
void main()
{
long int num;
scanf("%1d",&num);
do
{
if(num/10%10==9)
printf("%1d\n",num);
scanf("%1d",&num);
}while(num!=0);
}
编程实现从键盘输入若干学号,然后输出学号中十位数字是9的学号(输入0时结束循环)。
猜你喜欢
转载自www.cnblogs.com/zhangdemingQ/p/12097227.html
今日推荐
周排行