Hi friends here is a program for printing Diwali foods on output window and Happy Diwali message hope you like it.
Program:-
Output:-
Please comment and give Suggestion on this post, if you want any other program or help then type in comment or contact me, and give feedback for this blogs.
Program:-
#include<stdio.h>
|
void main()
|
{
|
int i,j,k;
|
printf("\n***************Happy Diwali
Friends****************");
|
printf("\nChakli Kha\n");
|
for(i=0;i<5;i++)
|
{
|
for(j=0;j<4-i;j++)
|
printf(" ");
|
for(k=4-i;k<5;k++)
|
printf("@ ");
|
printf("\n");
|
}
|
printf("\nShankarpale kha\n");
|
for(i=0;i<5;i++)
|
{
|
for(j=0;j<4-i;j++)
|
printf(" ");
|
for(k=4-i;k<5;k++)
|
printf("* ");
|
printf("\n");
|
}
|
for(i=3;i>=0;i--)
|
{
|
for(j=0;j<4-i;j++)
|
printf(" ");
|
for(k=4-i;k<5;k++)
|
printf("* ");
|
printf("\n");
|
}
|
printf("\nSquare Jilebi pn kha\n");
|
printf("\n
** ");
|
printf("\n
** ");
|
printf("\n
** **
");
|
printf("\n
** **
** ");
|
printf("\n
** **
** ");
|
printf("\n
** ** **
** ");
|
printf("\n
** ** ** ** **
");
|
printf("\n **
** ** ** **
");
|
printf("\n ** **
** ** ** ** ");
|
printf("\n ** **
** ** ** ** ");
|
printf("\n **
** **** ** ** ");
|
printf("\n
** ** ** **
** ");
|
printf("\n
** ** **
** ");
|
printf("\n
** ** ** **
");
|
printf("\n **
** **
");
|
printf("\n
**
** ");
|
printf("\n
** ** ");
|
printf("\n
** ");
|
printf("\n\nThank you...");
|
}
|
Output:-
Please comment and give Suggestion on this post, if you want any other program or help then type in comment or contact me, and give feedback for this blogs.
Thank you. This program will help us selecting the appropriate diwali food. Although I'll select shankerpale 😜😜.
ReplyDelete