Tuesday 5 September 2017

C-Program to print Alphabets from A to Z

PROGRAM :  Print Alphabets from A to Z

#include<stdio.h>

int  main()
 {
       int i;
//To print from 'A' to 'Z' by ascii values of A-Z
       for(i=65;i<=90;i++)
  printf("%c\n",i);
 return 0;

 }

OUTPUT : 






2 comments:

  1. Why I take from 65 to 90

    ReplyDelete
  2. It will print based on ASCII values. Ref - https://en.wikipedia.org/wiki/ASCII

    ReplyDelete