中M2018春C入门和进阶练习集-编程题2 7-8 I Love GPLT(5 分)

7-8 I Love GPLT(5 分)

这道超级简单的题目没有任何输入。

你只需要把这句很重要的话 —— I Love GPLT ——竖着输出就可以了。

所谓“竖着输出”,是指每个字符占一行(包括空格),即每行只能有1个字符和回车。

#include<stdio.h>
//#include<string.h>
int main()
{
  char a[]="I Love GPLT";
  int k=0;
   for(;k<11;k++)
    {
        printf("%c\n",a[k]);
        
     }
  return 0;
}

猜你喜欢

转载自blog.csdn.net/sinoshen/article/details/81394282