题解 | #小飞机#
小飞机
https://www.nowcoder.com/practice/5cd9598f28f74521805d2069ce4a108a
#include <stdio.h> int main() { //打印前两行 for (int i = 0; i < 2; i++) { for (int j = 0; j < 5; j++) { printf(" "); } for (int m = 0; m < 2; m++) { printf("*"); } for (int j = 0; j < 5; j++) { printf(" "); } printf("\n"); } //打印中间两行 for (int a = 0; a < 2; a++) { for (int b = 0; b < 12; b++) { printf("*"); } printf("\n"); } //打印后两行 for (int i = 0; i < 2; i++) { for (int j = 0; j < 4; j++) { printf(" "); } printf("*"); for (int k = 0; k < 2; k++) { printf(" "); } printf("*"); for (int l = 0; l < 4; l++) { printf(" "); } printf("\n"); } return 0; }