[My site ]
Main » 2013 » December » 12 » C Programming Sheet - 2 - for
11:23 PM
C Programming Sheet - 2 - for
#include"stdio.h"
main()
{
char ch_array[] = {'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'};
int i;
for(i=0;i<=25;i++){
printf("%c\n", ch_array[i]);
}
for(i=0;i<=25;i++){
printf("%c", ch_array[i]);
if((i+1)%5==0){
printf("\n");
}
}
getch();
}
Category: C Programming - 1 | Views: 324 | Added by: ahansaary | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Sign Up | Login ]