C++aaaaaaaa
#include<stdio.h>
main()
{
int i,m=1;
char t;
printf("please input a number:\n");
scanf("%d",&i);
for(m=1;m<11;m++)
{
printf("%d*%d=%d",i,m,i*m);
printf(" ");
if(m%2= =0)
printf("\n");
}
此程序再加几句使他运行一次后
运行窗口出现"是否继续运行Y/N"该怎么办?55555555555555
参考答案:int main()
{
int i,m=1;
char t;
rego:
printf("please input a number:\n");
scanf("%d",&i);
for(m=1;m<11;m++)
{
printf("%d*%d=%d",i,m,i*m);
printf(" ");
if(m%2= =0)
printf("\n");
}
printf("是否继续运行Y/N?") ;
if(getchar() == 'Y')
goto rego;
return 0;
}