Nepali Flag in C programming

Nepal flag :

....................................................
#include<stdio.h>
#include<conio.h>
int main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
printf("*\t");
}
printf("\n");
}
for(i=1;i<=5;i++)
{
for(j=i;j<=5;j++)
{
printf("*\t");
}
printf("\n");
}
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("*\t");
}
printf("\n");
}
for(i=1;i<=5;i++)
{
for(j=i;j<=4;j++)
{
printf("*\t");
}
printf("\n");
}
for(i=1;i<=3;i++)
printf("*\n");
getch();
}
........................................................


Other C Programming:


No comments

Powered by Blogger.