Easy Tutorial
❮ C Function Scanf C Function Signal ❯

C Exercise Example 6

100 Classic C Examples

Title: Output the letter C using asterisks.

Program Analysis: First, write the letter C on paper using asterisks, then output it line by line.

Program Source Code:

Example

//  Created by www.tutorialpro.org on 15/11/9.
//  Copyright © 2015 tutorialpro.org. All rights reserved.
//

#include "stdio.h"
int main()
{
    printf("Output the letter C using asterisks!\n");
    printf(" ****\n");
    printf(" *\n");
    printf(" * \n");
    printf(" ****\n");
}

The output of the above example is:

Output the letter C using asterisks!
 ****
 *
 * 
 ****

100 Classic C Examples

❮ C Function Scanf C Function Signal ❯