Write a programing on c to display the charecter starts from A

0
Output

Explanation of the Alphabet Pattern Program

This program prints a character pattern using English alphabet letters, starting from 'A'. The user is asked to enter the number of rows, and the program prints letters in a triangular form, increasing sequentially with each character.

The outer loop controls the number of rows, while the inner loop prints characters in each row. Every time a character is printed, it increases to the next alphabet letter, which continues until all rows are printed.

What the Program Does

  • Accepts the number of rows from the user.
  • Begins printing characters starting from A.
  • Each row prints one more character than the previous row.
  • Characters continue alphabetically (A, B, C, D, ...).
  • Pauses the screen at the end using getch() (Turbo C feature).

Example Input

Enter the number of rows: 4

Example Output

A B C D E F G H I J

Summary: The program prints alphabetical characters in a triangular pattern, starting from 'A' and continuing in sequence row by row.

Post a Comment

0Comments

Post a Comment (0)