/*WAP to print star*/
#include<stdio.h> #include<conio.h> void main() { int i,n,j; clrscr(); //clear screen for(i='A';i<='E';i++) //loop starts from 1 for row { for(j='A';j<=i;j++) // loop executes i times for colom printf("%c",j); // print j printf("\n"); // goto next line } getch(); }