标签:nbsp style span 输入 cin out ios name namespace
给定一个字符,用它构造一个底边长5个字符,高3个字符的等腰字符三角形。
输入只有一行,包含一个字符。
该字符构成的等腰三角形,底边长5个字符,高3个字符。
*
* *** *****
#include<iostream> using namespace std; int main() { char ch; cin>>ch; cout<<" "<<ch<<‘\n‘; cout<<" "<<ch<<ch<<ch<<‘\n‘; cout<<ch<<ch<<ch<<ch<<ch<<‘\n‘; return 0; }
标签:nbsp style span 输入 cin out ios name namespace
原文地址:https://www.cnblogs.com/wendcn/p/12562593.html