3839 - 1.2编写一个程序,显示图案
编写一个程序,显示下面的图案
Input
此题无需输入
Output
输出空格和字母组成一个JAVA图标
Examples
Input
None
Output
J A V V A
J A A V V A A
J J A A A A V V A A A A
J J A A V A A
Solution C
#include <stdio.h> int main() { printf(" J A V V A\n J A A V V A A\nJ J A A A A V V A A A A\n J J A A V A A"); return 0; }
Solution C++
#include<iostream> using namespace std; int main() { cout<<" J A V V A"<<endl; cout<<" J A A V V A A"<<endl; cout<<"J J A A A A V V A A A A"<<endl; cout<<" J J A A V A A"<<endl; return 0; }