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:
C programming beginner from Hello World
Keywords in C programming
Palindrome and armstrong in function C programming
Nepali Flag in C programming
switch statement using character in C programming
Control Statement in C programming
Control Statements in C programming (if and else)
Program for Stack Using switch( PUSH POP DISPLAY and empty
Examples of while, Do while
Keywords in C programming
Palindrome and armstrong in function C programming
Nepali Flag in C programming
switch statement using character in C programming
Control Statement in C programming
Control Statements in C programming (if and else)
Program for Stack Using switch( PUSH POP DISPLAY and empty
Examples of while, Do while
Post a Comment