C语言上机150道题

} 51.

else

return 0;

return 1;

#include #include void main() {

int a,b,c,d,e,f,t;

printf(\从键盘输入两个不等于零的正整数a,b(a

printf(\从键盘输入两个不等于零的正整数c,d-使数据以c的d次方增长\\n\scanf(\e=a*pow(c,d); f=b*pow(c,d); t=e+f;

printf(\的几何级数=%d\\n\printf(\的几何级数=%d\

printf(\之间的几何级数的和=%d\\n\}

52

#include main() { } 53

#include void main() { int r,s;

for(r=1;r<100;r++) {

char ch;

unsigned count=0;

printf(\while((ch=getchar())!=EOF)

count=count+1;

printf(\

联系客服:779662525#qq.com(#替换为@)