#include "stdio.h"void main(){\x05printf("请输入两个数值:\n中间用逗号隔开)\n ");\x05\x05int i,j ,sum;\x05scanf("%d,%d",&i,&j);\x05sum=i+j;printf("\nsum=%d",sum);printf("\n");getchar();}这是我编的程序,打开生成的.exe程序

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 09:36:47
#include
xT_oP{45#o> / R)蒅uel%N$-O~Oma`C9s~sQIr|59^%L(?H .@p=ܓo:`g$m\-EeӸ4ZAka?{ZTDp>I(!5u!nh~-ܜv/EH@h53!*;[",Sjm QM3Od;t CdK@i|Ǖ>Lw&/lng9U g7%YD JL$

#include "stdio.h"void main(){\x05printf("请输入两个数值:\n中间用逗号隔开)\n ");\x05\x05int i,j ,sum;\x05scanf("%d,%d",&i,&j);\x05sum=i+j;printf("\nsum=%d",sum);printf("\n");getchar();}这是我编的程序,打开生成的.exe程序
#include "stdio.h"
void main()
{
\x05printf("请输入两个数值:\n中间用逗号隔开)\n ");
\x05\x05int i,j ,sum;
\x05scanf("%d,%d",&i,&j);
\x05sum=i+j;
printf("\nsum=%d",sum);
printf("\n");
getchar();
}
这是我编的程序,打开生成的.exe程序输入之后,按ente后就把窗口关闭了,怎样才能不关闭,然后输出值.

#include "stdio.h"void main(){\x05printf("请输入两个数值:\n中间用逗号隔开)\n ");\x05\x05int i,j ,sum;\x05scanf("%d,%d",&i,&j);\x05sum=i+j;printf("\nsum=%d",sum);printf("\n");getchar();}这是我编的程序,打开生成的.exe程序

如果你的意思是让它重复的话有两种方法

1,用循环

#include "stdio.h"
void main()
{
while(1)
{
printf("请输入两个数值:\n中间用逗号隔开)\n              ");
int i,j ,sum;
scanf("%d,%d",&i,&j);
sum=i+j;printf("\nsum=%d",sum);
printf("\n");
getchar();
}
}

2,调用主函数

#include "stdio.h"
void main()
{
printf("请输入两个数值:\n中间用逗号隔开)\n              ");
int i,j ,sum;
scanf("%d,%d",&i,&j);
sum=i+j;
printf("\nsum=%d",sum);
printf("\n");
getchar();
main();
}

#include stdio.h double fun(int m) { // } #include stdio.h main() { int A,B,C; while (A include<stdio. 用C语言如何判断出元音字母?将26个小写英文字母中的元音字母(a,e,i,o,u)写入到文件vo.txt中.#includestdio.h void main( ) { char ch;/*第一空*/ FILE *fp; fp=fopen(vo.txt,w); for(ch=′a′;ch #include stdio.h main() { int a,b,sum;#include stdio.hmain(){int a,b,sum;printf(Enter two numbers: );scanf(%d%d,&a,&b);for(;a C语言随机数#include stdio.h#include stdlib.h#include time.hint main(void){int a[5],i;randomize();for(i=0;i 帮忙解析一个语句#include stdafx.h#include stdio.h#include time.h#include stdlib.hint main() {intintComputerChoice,intUserChoice;srand(unsigned(time(NULL)));intComputerChoice = 1 + rand() % 3;printf(Enteryour choice (1—Rock; 2—Pap C语言中,#include 头文件中的尖括号可以用双引号“”代替吗?那还可以用圆括号代替呢?就是把〈stdio.h〉用(stdio.h )或stdio.h代替呢? 关于C语言中sqrt函数的运用!#include stdio.h#include math.h void main() {int m,i,k,n=0; for(m=101;m #include stdio.h #include conio.h struct n {int x,y;} d[2]={1,2,3,4}; main() {struct n *p=d; pr 关于素数题(急````在线等#include stdio.h#include math.hmain(){ int i,j,k,Prime=0;for (i=101;i 求素数101-200的#include stdio.h#include math.hvoid main(){int judge(int);int i;for(i=101;i if(fl(n-i))#include stdio.h#include math.hvoid flat(int n){int i;for(i=2;i error C2018:unknown character #include stdafx.h#include stdio.hvoid main(){int i,j,k,n;printf('water flower'number is:); for(n=100;n #includestdio.h main() { int a=1,b=2,c=3,t; while(a 以下程序的执行结果是:#includestdio.hmain(){int I,s=0;for(i=1;i #include stdio.h void main() { int a=1,b=2,c=2,t; while(a #include stdio.h main() { int a[100],n,i,min,t; while(scanf(%d,&n),n>0&&n