79

从键盘上任意输入两位正整数,编程求出个位与十位的乘积且打印输出。

#include"stdio.h"
void main()
{
int num;
printf(“please input the num:\n”);
scanf("%d",&num);
printf(“the result is :%d\n”,(num%10)*(num/10));
}

猜你喜欢

转载自blog.csdn.net/qq_54632230/article/details/114143632
79