关于求两位数中个位数和十位数的DEMO
练习基本知识
#includevoid end_ten_bit_result(int src); int main(void) {	int src;	printf("请输入一个两位数:\n");	do	{	scanf("%d",&src);	if ((src=100))	{	printf("请重新输入,您输入的数不符合要求;\n");	}	} while (src=100);	end_ten_bit_result(src);	system("pause");	return 0; } void end_ten_bit_result(int src) {	int end_bit=0;	int ten_bit=0;	end_bit=src%10;	ten_bit=src/10;	printf("%d is end_bit\n",end_bit);	printf("%d is ten_bit\n",ten_bit); }