C语言填空题

#include <stdio.h>
#include <conio.h>
#include <math.h>
int main()
{
float x, x0, /**/ /**/,f1;
x0=/**/ /**/;
do
{
x=x0;
f= ((x+4)*x)*x-10;
f1=(3*x+8)*x;
x0=x-f/f1;
}while(fabs(x0-x)>= /**/ /**/);
printf("x=%f\n",x0);
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
double fun(int n)
{ double sum = 0.0;
int i;
for(i=1; i<=/**/ /**/; i++)
{
sum += 1.0/(2*i) - /**/ /**/;
}
return (/**/ /**/);
}
int main()
{ int n;
do
{ printf("Input n(n>0): ");
scanf("%d",&n);
}while(n<1);
printf("fun(%d) = %.5lf\n",n,fun(n));
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
int main()
{ int i,j;
char c='A';
for(i=1; i<=5; i++)
{
for(j=1; j<=5-i; j++) printf(" ");
for(j=1; j<=i*2-1; j++) printf("%c",c);
printf("\n");
/**/ /**/;
}
c--;
for(i=4; i>=1; /**/ /**/)
{
c--;
for(j=1;j<=5-i; j++) printf(" ");
for(j=1; j<=/**/ /**/; j++) printf("%c",c);
printf("\n");
}
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
int main()
{ int i,j;
char c='A';
for(i=1; i<=5; i++)
{
for(j=1; j<=5-i; j++) printf(" ");
for(j=1; j<=i*2-1; j++) printf("%c",c);
printf("\n");
/**/ /**/;
}
c--;
for(i=4; i>=1; /**/ /**/)
{
c--;
for(j=1;j<=5-i; j++) printf(" ");
for(j=1; j<=/**/ /**/; j++) printf("%c",c);
printf("\n");
}
getch();
return 0;
}

#include<stdio.h>
#include<conio.h>
int main()
{ int a,b,c;
/**/ char f; /**/
printf("Please input a,b :");
scanf("%d,%d",&a,&b);
f= a*b;
c=/**/ f/100 /**/;
printf( "%d\n" ,/**/ a /**/);
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
int main()
{ int i,a1,a2,a3,n=0;
for(i=10; i<=1000; i++)
{ a1=/**/ i%100 /**/;
a2=i/10%10;
a3=i%10;
if(i%7==0 && (a1==8 || a2==8 || /**/ a3=8 /**/))
{ printf("%3d ",i);
n++;
if(n%10==0) printf("%c",/**/ "\n" /**/);
}
}
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
long int fun(/**/ n /**/)
{ long int s;
if(n==1) s=1;
else s=/**/ s /**/ * fun(n-1);
return /**/ n /**/;
}
int main()
{
printf("10!=%ld \n",fun(10));
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
int main()
{
int /**/ i,a1,a2; n=0 /**/;
for(i=100;i<=1000; i++)
{
a1= i/100;
a2=/**/ i/10 /**/;
if( a1==a2 )
{
printf("%3d ",i);
n++;
if(!(n%10)) printf(/**/ "n" /**/);
}
}
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
#include <math.h>
int fun(/**/ float x, y, r /**/)
{
if(sqrt(x*x+y*y)<r) return 1;
return /**/ -1 /**/;
}
int main()
{ float x,y,r;
int bIn;
do
{ printf("Input radius r (r>0): ");
scanf("%f", &r);
}while(r<=0);
printf("\nInput the dot(x,y): ");
scanf("%f,%f",&x,&y);
bIn = fun(x,y,r);
if(/**/ bIn = 1 /**/) printf("In the circle!\n");
else printf("Out of the circle!\n");
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
#include <math.h>
double fun(float x)
{ /**/
/**/
}
int main()
{ float x;
printf("Input x: ");
scanf("%f",&x);
printf("fun(%.3f) = %.3lf\n",x,fun(x));
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
#include <math.h>
double fun(float x)
{ /**/
/**/
}
int main()
{
float x;
printf("Input x: ");
scanf("%f",&x);
printf("fun(%.3f) = %.3lf\n",x,fun(x));
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
#include <math.h>
double fun(float x)
{ /**/
/**/
}
int main()
{
float x;
printf("Input x: ");
scanf("%f",&x);
printf("fun(%.3f) = %.5lf\n",x,fun(x));
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
#include <math.h>
double fun(float x)
{ /**/
/**/
}
int main()
{
float x;
printf("Input x :");
scanf("%f",&x);
printf("fun(%.3f) = %.3lf\n",x,fun(x));
getch();
return 0;
}

#include <stdio.h>
#include <conio.h>
#include <math.h>
double fun(float x)
{ /**/
/**/
}
int main()
{
float x;
printf("Input x :");
scanf("%f",&x);
printf("fun(%.3f) = %.3lf\n",x,fun(x));
getch();
return 0;
}
...全文
相关推荐
C语言程序填空题库
C语言程序填空题题库,帮助您更好的通过考试计算机二级C语言考试
C语言程序设计选择题,填空题题库
本题库具有如下章节的选择填空题,题量多多,收获多多,是出试卷的好资料! 二、数据类型、运算符与表达式 (一) 三、简单的C程序设计(一) 四、逻辑运算与判断选取控制 (一) 五、循环控制(一) 五、循环控制 (二) 七、函数(一) 七、函数(二) 七、函数(三) 八、编译预处理 九、指针(二) 九、指针(一) 十、结构体与共同体(一) 十、结构体与共同体(二) 十一、位运算 十二、文件
C语言填空题C语言填空题.doc
C语言填空题C语言填空题
c语言 程序填空题题库
一套非常好的c语言程序填空题题库,对考试非常有帮助
程序填空题(非常好的填空题)-C语言
程序填空题,是本人平时编程,教学过程中的一些程序,将其改为了程序填空题


