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