main() { int i,b,k=0; for(i=1;i=0) k++; } printf("%d,%d",k,b); }A.3,-1B.8,-2C.8,-1D.3,0求b要理由哦,不单是结果!
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 23:26:41
main(){inti,b,k=0;for(i=1;i=0)k++;}printf("%d,%d",k,b);}A.3,-1B.8,-2C.8,-1D.3,0求b要理由哦,不单是结果!main(){i
main() { int i,b,k=0; for(i=1;i=0) k++; } printf("%d,%d",k,b); }A.3,-1B.8,-2C.8,-1D.3,0求b要理由哦,不单是结果!
main() { int i,b,k=0; for(i=1;i=0) k++; } printf("%d,%d",k,b); }
A.3,-1
B.8,-2
C.8,-1
D.3,0
求b要理由哦,不单是结果!
main() { int i,b,k=0; for(i=1;i=0) k++; } printf("%d,%d",k,b); }A.3,-1B.8,-2C.8,-1D.3,0求b要理由哦,不单是结果!
i=1;b=1;k=2;
i=2;b=0;k=3;
i=3;b=1;k=5;
i=4;b=0;k=6;
i=5;b=1;k=8;
至于b吗最后一次是用-1去判断的,最后又自减1,就是-2;
#include int main(){int i,j,k;for (i=0;i
那个k/pow(10,为什么结果只输出一个?#include #includeusing namespace std;int main(){int a,b,i,k;cin >> k;for(i=0; i < 3; i++){a = (int)(k/pow(10,i));cout
写出下面程序运行的结果.main ( ) { int i,b,k=0 ; for (i=1; i
int main(void) { int k=0; while(k++
#include int b=2; int fun(int*k) { b=*k+b;return(b);} main() {int a[10]={1,2,3,4,5,6,7,8}#include int b=2; int fun(int*k) { b=*k+b;return(b);} main() {int a[10]={1,2,3,4,5,6,7,8},i;for(i=2;i
main() {int i,j,k=0,m=0;for(i=0;i
#include main() { int i,k; for(i=0,k=-1;k=1;k++) printf(****
); }
求做道C的题目main(){int n[3],i,j,k; for(i=0;i
main(){int a[20],i,j,k,m,zh,fh;for(i=0;i
main() {int k=0; while(printf(*)) {k++; if(k
将十进制正整数m转换成k进制(2#include #include void fun(int m,int k)int aa[20],i;for(i=0;m;i++)aa[i]=m/k;m/=k;for(;i;i--)printf(%d,aa[i]);main()int b,n;clrscr();printf(enter a number and a base:);scanf(%d %d,&n,&b);fun(n,b);
一道题目逻辑错误,求大师#include int b[42] ;int main(){int a[20][20],i,j,m,q,k,n;scanf(%d,&m);for(i=0;i
main() {int i,b,k=0; for(i=1;i=0) k++;} printf(%d,%d,k,b);}结果为什么是k = 8 b= - 2
int b=2;int fun(int*k) {b=*k=b;return (b);} main() {int a[10]={1,2,3,4,5,6,7,8} for (i=2;i
c++计算质数题目#includeusing namespace std;int main(){int i,j,k,l;l=0;cout
main() { int i,b,k=0; for(i=1;i=0) k++; } printf(%d,%d,k,b); }A.3,-1B.8,-2C.8,-1D.3,0求b要理由哦,不单是结果!
让人费解的一道C语言题目#include int func(int a,int b);void main(){int k=4,m=1,p;p=func(k,m);printf(%d,,p);p=func(%d
,p);}int func(int a,int b){static int m=0,i=2;i+=m+1;m=i+a+b;return(m);}A.8,17 B.8,16 C.8,20 D.8,8能将下为什么
#include main( ) { int k,sum=0 int count=0 for(k=1;k