这是一道非常简单的题,输入一个字符,按照格式输出此字符9遍即可,要有空格和换行。
代码:
#include <iostream>
using namespace std;
char c;
int main () {
cin >> one;
cout << " " << c << endl;
cout << " " << c << c << c << endl;
cout << c << c << c << c << c;
return 0;
}
这是一道非常简单的题,输入一个字符,按照格式输出此字符9遍即可,要有空格和换行。
代码:
#include <iostream>
using namespace std;
char c;
int main () {
cin >> one;
cout << " " << c << endl;
cout << " " << c << c << c << endl;
cout << c << c << c << c << c;
return 0;
}