C language brush questions - output "C"

insert image description here

Article directory

topic

Use * to output the pattern of the letter C.

ideas

The letter C can be written on the paper with the '*' first, and then output in a separate printf语句line .

answer

#include <stdio.h>

int main()
{
    
    
    printf("Hello C-world!\n\n");
    
    printf(" ****\n");
    printf(" *\n");
    printf(" * \n");
    printf(" ****\n");

    return 0;
}

Sample output

insert image description here

insert image description here

Guess you like

Origin blog.csdn.net/qq_21484461/article/details/123987925