标签:c语言
#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
本文出自 “无以伦比的暖阳” 博客,请务必保留此出处http://10797127.blog.51cto.com/10787127/1706134
标签:c语言
原文地址:http://10797127.blog.51cto.com/10787127/1706134