題目描述
請寫一個程式,使用輸出命令在平面上輸出一個菱形,具體形狀請參考下文中的輸出樣例,
注意:
一共7行,每一行都有一個換行,行之間不能有多余空行;
行末星號后不應該出現多余空格;
星號之間不應該有空格,
輸入輸出格式
輸入格式
無
輸出格式
無
輸入輸出樣例
輸入樣例
無
輸出樣例
*
***
*****
*******
*****
***
*
題解
水題~
代碼俠!Come here!
代碼
#include<bits/stdc++.h>
using namespace std;
int main(){
printf(" *\n ***\n *****\n*******\n *****\n ***\n *");
return 0;
}
秀不秀?( ̄▽ ̄)/
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/264498.html
標籤:其他
