#836. dowhile循环
dowhile循环
以下程序段的输出结果是({{ input(1) }} )
int sum=0, n=10;
do{
sum=sum+n;
n++;
}while(n<10);
printf("%d,%d",sum,n);
以下程序段的输出结果是({{ input(1) }} )
int sum=0, n=10;
do{
sum=sum+n;
n++;
}while(n<10);
printf("%d,%d",sum,n);
By signing up a 羽润编程 universal account, you can submit code and join discussions in all online judging services provided by us.