为什么我加了PAUSE但是dev c++编出来的程序运行结束后还是闪退了
很简单的代码如下#include<stdio.h>intval1,val2,val3;intmain(void){printf("Enteranumberbetween1...
很简单的代码如下
#include<stdio.h>
int val1,val2,val3;
int main(void)
{
printf("Enter a number between 1 to 100:");
scanf("%d",&val1);
printf("Enter another number between 1 to 100:");
scanf("%d",&val2);
val3=val2*val1;
printf("%d times %d = %d\n",val1,val2,val3);
system("PAUSE");
return 0;
} 展开
#include<stdio.h>
int val1,val2,val3;
int main(void)
{
printf("Enter a number between 1 to 100:");
scanf("%d",&val1);
printf("Enter another number between 1 to 100:");
scanf("%d",&val2);
val3=val2*val1;
printf("%d times %d = %d\n",val1,val2,val3);
system("PAUSE");
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询