Thursday, April 2, 2020

c program to display character from a to z using loop

C program to display character from a to z using loop

#include 
int main()
{
    char c; //Character variable
    for (c = 'A'; c <= 'Z'; ++c) // loop  character variable
        printf("%c ", c); // print final result
    return 0;
}
Output

 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 
  • In this program, loop is used to display the English alphabet in uppercase.


Happy Coding
Location: Pakistan

0 comments:

Post a Comment

Recent Posts