填空题

执行以下程序后,输出#号的个数是 【4】 。
# include<stdio. h>
main()
int i, j;
for(i=1; i<5; i++)
for(j=2; j<=i; j++)putchar(’#’);

【参考答案】

F
<上一题 目录 下一题>
热门 试题

填空题
以下程序运行后的输出结果是 【7】 。 void fun(int x, int y) x=x+y; y=x-y; x=x-y; printf( % d, % d, , x, y); main() int x=2, y=3; fun(x, y); printf( % d, % d n , x, y);
填空题
请在以下程序第一行的下划线处填写适当内容,使程序能正确运行。 【5】 (double, double); main() double x, y; scanf( % lf % lf , &x, &y); printf( % 1f n , max(x, y)); double max(double a, double b) return(a>b a:b);
相关试题
  • 有一种攻击是针对网络低层协议而不是针对某...
  • 以下程序中给指针p分配3个double型动态内...
  • 以下程序运行后的输出结果是 【14】 。...
  • 以下程序中,for循环体执行的次数是 【1...
  • 有以下程序: # define f(x)x*x ma...