马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
The function diamond : • takes one parameter N (type int ), its value must be odd and in the range [3, 99] • it draws a square shape made of integer values and spaces: – integer values are always printed with 2 digits (for example, value 7 is printed 07 ) – every line consists of integer values from 1 up to N , where some values have to be replaced by spaces instead – the first and last row are full (no space) – the middle row is empty except for values 1 and N , – each row from the first one to the middle one is increasingly empty from its center
each row from the middle one to the last one is increasingly full to its center
|