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

学习 时间:2026-06-05 01:50:28 阅读:7357
C的一道很简单的题!编写一个能产生下列输出的程序hello!hello!hello!hello!hello!hello!在程序中定义一个能显示字符串hello!一次的函数,并在需要是使用该函数

最佳回答

独特的月亮

体贴的紫菜

2026-06-05 01:50:28

#include void print_hello(){ printf("hello! "); //显示字符串hello!一次}int main(){ int i,j; for(i = 3 ; i > 0 ; i--) //循环3行 { for(j=0;j

最新回答共有2条回答

  • 喜悦的咖啡豆
    回复
    2026-06-05 01:50:28

    #include void print_hello(){ printf("hello! "); //显示字符串hello!一次}int main(){ int i,j; for(i = 3 ; i > 0 ; i--) //循环3行 { for(j=0;j

上一篇 无论哪课都得,求求各位哥哥姐姐教教我,我现在是提前写五年级的作业,

下一篇 以等待什么为话题的作文要求800字跪求