编程实现重复输入x,y的值,输出x,y之积,并以输出0结束2
发布网友
发布时间:2023-09-23 10:03
我来回答
共1个回答
热心网友
时间:2023-10-18 17:30
#include<stdio.h>
int main()
{
int a,x,y;
scanf("%d",&x);
scanf("%d",&y);
a = x * y;
while(a != 0)
{
printf("a = %d\n",a);
scanf("%d",&x);
scanf("%d",&y);
a = x * y;
}
printf("a = %d\n",a);
}