Friday 4 September 2015

loop to print a to z

#include<stdio.h>
#include<conio.h>
void main()
{char a,b;
for(a=65;a<=90;a++)
{for(b=65;b<=a;b++)
{printf("%c",b);
}printf("\n");
}
getch();
}

No comments:

Post a Comment