请在屏幕中输出两行15个“*”的图案.利用函数知识,编写代码?

如题所述

第1个回答  2020-04-02
#include <stdio.h>
#include <math.h>
int print()
{
for(int i = 0; i < 15; i++)printf("*");//15次循环,每次打印一个*
return 0;
}
int main()
{
print(); //调用函数print打印15个*;
puts("");//换行
print(); //调用函数print打印15个*;
return 0;
}本回答被网友采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网