有如下程序:#include main(){int i,data;scanf("%d",&data);for (i=0; i<5; i++){if (i>data)break;printf("%d,", i);}printf("\n");}程序运行时,从键盘输入:3回车后,程序输出结果为______。
A. 3,4,
B. 0,1,0,1,
C. 3,4,5,
D. 0,1,2,3,
查看答案
对于循环语句:for(i=0;i<=10;i++) { ; }下面各选项的叙述中错误的是______。
A. 省略i=0,可引起无限循环
B. 省略i<=10,可引起无限循环
C. 省略i++,可引起无限循环
D. 圆括号()内三个表达式都省略,可引起无限循环
以下程序的输出结果是______。#include "stdio.h"main(){int b[3][3]={0,1,2,0,1,2,0,1,2},i,j,t=1;for(i=0;i<3;i++)for(j=i;j<=i;j++)t=t+b[i][b[j][j]];printf("%d\n",t);}
A. 3
B. 4
C. 1
D. 9
有以下程序 :#include "stdio.h"main(){int a[3]={0}, i, j, k=2;for( i=0; i
A. 1
B. 2
C. 3
D. 0
The American economy is built on credit. In the last decade, however, cheap credit made it too easy for people to buy houses based on pure speculation that real estate value would endlessly continue to increase. But the housing 1)________ set off a chain reaction in our economy. Individuals and investors could no longer resell their homes for a quick profit, 2)________ no longer became affordable for many homeowners, and thousands of mortgages defaulted (违约), leaving investors and financial institutions to face the terrible consequences.Ironic, isn't it? Yes, it is true that credit got us into this mess, but it is also true that our economy is 3)________ unstable right now, and being that it is built on credit, it needs an inflow of cash or it could come 4)________ down. This is something no one wants to see as it would 5)________ through our economy and into the world markets in a matter of hours, potentially causing a worldwide recession.Credit in and of itself is not a bad thing. Credit 6)________ growth and jobs. Poor use of credit, however, can be 7)________, which is what we are on the 8)________ of seeing now. So long as the rescue plan comes with changes to lending regulations and more 9)________ of the industry, there is potential to 10)________ the market, which is what everyone wants. Whether or not it works is to be seen, but as it has already been voted on and passed, we should all hope it does.