#include <stdio.h> int main(void) { char c; scanf("%c", &c); printf(" %c\n", c); printf(" %c%c%c\n", c, c, c); printf("%c%c%c%c%c\n", c, c, c, c, c); return 0; }
C++ :
#include<iostream> using namespace std; int main() { char ch; cin>>ch; cout<<" "<<ch<<endl; cout<<" "<<ch<<ch<<ch<<endl; cout<<ch<<ch<<ch<<ch<<ch<<endl; return 0; }
注册一个 d&f算法网 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 d&f算法网 通用账户