C的一道很简单的题!编写一个能产生下列输出的程序hello!hello!hello!hello!hello!hello!

问题描述:

C的一道很简单的题!
编写一个能产生下列输出的程序
hello!hello!hello!
hello!hello!
hello!
在程序中定义一个能显示字符串hello!一次的函数,并在需要是使用该函数
1个回答 分类:综合 2014-10-26

问题解答:

我来补答
#include
void print_hello()
{
printf("hello! "); //显示字符串hello!一次
}
int main()
{
int i,j;
for(i = 3 ; i > 0 ; i--) //循环3行
{ for(j=0;j
 
 
展开全文阅读
剩余:2000
下一页:奇偶性的应用。