Experiment 1-5 Output diamond pattern (5 points)

This question requires writing a program to output the designated diamond pattern composed of "A".

Input format:

No input for this question

Output format:

The diamond pattern composed of "A" is output in the following format.

  A
A   A
  A
# include <stdio.h>
# include <stdlib.h>

int main(){
    
    
	printf("  A\nA   A\n  A");
	return 0;
} 

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_43862765/article/details/114312557