注意:此页面搜索的是所有试题
在线试题20上有如下程序 #include “stdio.h”void main(){ int sum=0,i;scanf(“%d”,&i);while(i<=10){ sum+=i; i++; }printf(“%d”,sum);} 程序运行两次分别输入1,20,结果分别为( )。
·55 20
·1 20
·55 0
·1 0

参考答案