#include<stdio.h> #include<stdlib.h> int main() { char a[][13] = { { ‘ ‘, ‘ ‘, ‘ ‘, ‘ ‘, ‘ ‘, ‘ ‘, ‘*‘ }, { ‘ ‘, ‘ ‘, ‘ ‘, ‘ ‘, ‘ ‘, ‘*‘, ‘*‘,‘*‘}, {‘ ‘,‘ ‘,‘ ‘,‘ ‘,‘*‘,‘*‘,‘*‘,‘*‘,‘*‘} , { ‘ ‘, ‘ ‘, ‘ ‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘ }, { ‘ ‘, ‘ ‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘ }, { ‘ ‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘,‘*‘,‘*‘ }, { ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘, ‘*‘,‘*‘,‘*‘ }}; int i, j; for (i = 0; i <7; i++) { for (j = 0; j<13; j++) printf("%c", a[i][j]); printf("\n"); } for (i = 6; i >= 0; i--) { for (j = 12; j >= 0; j--) printf("%c", a[i][j]); printf("\n"); } system("pause"); return 0
时间: 2024-11-08 07:15:28