#include main() {int y,a; y=2,a=1; while(y--!=-1) {do{a*=y;a++;}while(y--);}printf(“%d,%d",a,y);}
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/24 02:10:29
#includemain(){inty,a;y=2,a=1;while(y--!=-1){do{a*=y;a++;}while(y--);}printf(“%d,%d",a,y);}#includem
#include main() {int y,a; y=2,a=1; while(y--!=-1) {do{a*=y;a++;}while(y--);}printf(“%d,%d",a,y);}
#include main() {int y,a; y=2,a=1; while(y--!=-1) {do{a*=y;a++;}while(y--);}
printf(“%d,%d",a,y);}
#include main() {int y,a; y=2,a=1; while(y--!=-1) {do{a*=y;a++;}while(y--);}printf(“%d,%d",a,y);}
while(y-- != -1)//这句执行后y = 1
{
do{
a *= y;//a = 1;
a++;//a= 2
}while(y--);//这句执行后y = 0,do里面在执行一遍,即a = 1;推出do...while,来到外层while循环
后此时y = -1;外层循环不进入,但是y--还是要执行的故此时y = -2;a = 1
}
#include int main( ){int c;cout
运行vc++时 #include int main() { cout
#include using namespace std; int main() { cout
实在看不懂#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;int cases;int main() {double cl = clock();scanf(%d,
C++有道题看不懂,#include int func(int a,int b);int main(){cout
C++计算阶乘n#include #include #include #include using namespace std;int main(){int sum = 1,d;int n;cin >> n;for(int i=1;i
#include void main( ) { int k=-3; if (k
#include main() { int x=0; while(x++
#include stdio.h main() { int A,B,C; while (A
sales_item是什么#include #include sales_item.husing namespace std;int main (){sales_item book;cin >> book;cout
#include #include main() { int x,y; float m; for(x=0;x
c++分解质因数过程#include using namespace std;int main(){int n,c;coutn,c;cout
#include int main(){int i,j,k;for (i=0;i
#include int main(){ int x=0,y=0; while(x
#include void main() { int i;int sum=0; for(i=1;i
#include void main(){int a[30];int i;for (i=0,i
#include main( ) { int k,sum=0 int count=0 for(k=1;k
#include #include int main() { int x,y,sqrt; scanf (%d,&x); y=sqrt(x); if (x>