Thursday, 2 October 2014

WAP to print patter


#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int k,i,j;
for(i=0;i<5;i++)  {
for(j=0;j<5-i;j++) {
printf(" ");
}
for(k=0;k<=i;k++){
printf("*");
}
printf("\n");
}
getch();
}





No comments:

Post a Comment

Please write your doubts