BeginnersBook.in

Programming For Geeks

  • Home
  • All Tutorials
    • Learn C
    • Learn Python
  • Programs
    • Java Programs
    • C++ Programs
    • C Programs
  • Algorithms
    • Sorting
  • MCQ’s
    • MySQL
    • Operating System
  • WordPress
    • Genesis Pro Themes
    • Blogs
  • Tools
    • Direct Download Link Generator
    • HTML Compiler
  • How to
    • Web Examples
  • Write For Us

C Program to Display Characters From A to Z

April 14, 2018 By Mr. Robot

In this program, you will learn to display capital letters characters from A to Z. This example uses for loop to print letters by converting ascii numbers.

Example: Display Characters From A to Z

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<stdio.h>
//execution starts from main
int main()
{
    int i;
    //loop run from A = 65 to Z = 90
    for(i = 65; i <= 90; i++)
    {
        //print ascii numbers in char
        printf("%c\n",i);
    }
    //exit status
    return 0;
}
When you run the program, the output will be following:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
A                                                                                                                                
B                                                                                                                                
C                                                                                                                                
D                                                                                                                                
E                                                                                                                                
F                                                                                                                                
G                                                                                                                                
H                                                                                                                                
I                                                                                                                                
J                                                                                                                                
K                                                                                                                                
L                                                                                                                                
M                                                                                                                                
N                                                                                                                                
O                                                                                                                                
P                                                                                                                                
Q                                                                                                                                
R                                                                                                                                
S                                                                                                                                
T                                                                                                                                
U                                                                                                                                
V                                                                                                                                
W                                                                                                                                
X                                                                                                                                
Y                                                                                                                                
Z

Filed Under: C Examples

Related Posts

  • C Program to Check Armstrong Number
  • C Program to Print All Odd Numbers From 1 to n
  • C Program to Check Prime Number

Recent Posts

  • Download Grand Theft Auto: Vice City Audio File | Highly Compressed
  • Grand Theft Auto: Vice City Game Download For PC | Full Setup
  • SQL SHOW DATABASES Statement
  • Direct view storage Tube (DVST) in Computer Graphics
  • CRT Color Monitor in Computer Graphics

More…

  • C Tutorial

C Examples

  • Hello, World
  • Add Two Numbers
  • Area of Triangle
  • Sum of All Digits
  • Characters a to z
  • Characters A to Z
  • Check Leap Year
  • Reverse a Number
  • Palindrome Number
  • Sum of N Numbers
  • Multiply Using Addition
  • Print 1 to 10 Numbers
  • Even or Odd Number
  • Armstrong Number
  • Swap Using Temp
  • Swap Without Temp
  • Find Largest Numbers
  • Check Prime Number
  • Max Prime Number
  • Fibonacci Series
  • Numbers Divisible by 2
  • Factorial of a Number
  • Convert Total Days
  • Add Digits of Number
  • Count Whitespaces
  • Count Vowels
  • Magic Number
  • Happy Number
  • Strong Number
  • Perfect Number
  • Length of String
  • Count Words
  • Get More 200+ Examples ..

Copyright © 2019 - BeginnersBook.in - All Right Reserved || Sitemap