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();
}
|
|
Total comments: 0 | |