Pages

Saturday, July 2, 2016

C Program to print A to Z using for loop.

#include<stdio.h>
int main()
{
 int i;

 for(i=65; i<=90; i++)
 {
  printf("%c ",i);
 }
 return 0;
}

Output of the program:
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