首页 > 代码库 > 08:字符三角形

08:字符三角形

#include<iostream>#include<cstdio>#include<cstdlib>#include<cmath>#include<algorithm>#include<cstring>using namespace std;int main(){char a; cin>>a; printf("  %c\n %c%c%c\n%c%c%c%c%c",a,a,a,a,a,a,a,a,a);return 0;}

 

08:字符三角形