Pages

Tuesday, February 9, 2016

C program to print A to Z using while loop.

#include<stdio.h>
int main()
{
  char ch='A';

  while(ch <= 'Z')
  {
printf("%c ", ch);
ch = ch + 1;
  }
  return 0;
}/*
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
*/

No comments:

Post a Comment