Diamond output

xiaoxiao2021-03-06  14

Problem Enter n value, programming outputs the following graphics.

INPUT an integer N (1 <= n <= 7).

Output is arranged in a rhombic uppercase character, the first character is Z, and then in turn is Y, X ...

Sample INPUT3

Sample Output Z y xw v u t

INT i = -1, f, n, c; main () {i == - 1 && (Scanf ("% D", & n), f = 0, C = 'Z', i ), Printf ("% * C / N ", 2 * I, I? C -: 0, Printf ("% * C ", N-I 1, C -)), (f = i == n-1? 1: f )? main (i -): main (i );

转载请注明原文地址:https://www.9cbs.com/read-49562.html

New Post(0)