请修改调试下列代码,并将正确完整代码填入。#include "math.h"void main(){printf(Programing is fun.\n);}
举一反三
- 写出下列程序的输出结果是()()。 #include int a = 5; void fun(int b) { int a = 10; a += b; printf("%d\n",a); } void main( ) { int c = 20; fun(c); a += c; printf("%d\n", a); }
- 下列程序的运行结果是( ) #include void fun(); int a=5; int main() { int a=10; fun(); printf("%5d",a); return 0; } void fun() { a=a+5; printf("%5d",a); }
- 以下程序的输出结果是 ( ) 。# include <;stdio.h>;void fun(int x){if(x/2>;0)fun(x/2);printf("%d",x);}main(){fun(3);printf("\n");}
- 以下程序正确的是_____ A: B: include<;stdio.h>;int gNum;gNum=13;void main(){printf("%d\n", gNum);} C: D: include<;stdio.h>;void main(){int rob=17;printf("rob=%d\n", rop);}int rop=71; E: F: include<;stdio.h>;void main(){extern int outer;printf("outer=%d\n", outer);}int outer=33; G: H: include<;stdio.h>;void main(){extern int outer=33;printf("outer=%d\n", outer);}int outer=33;
- 1.以下程序正确的是( )。 A: include stdio.h{ printf(A\n);} B: void main(){ printf(A\n);} C: includestdio.hvoid main(){ printf(A\n);} D: ...