010
Write a C Program to print the Following Pattern?
*
* *
* * *
* * * *
* * * * *
#include <stdio.h>
void main ()
{
int i, j;
for (i = 1; i <= 5; i++)
{
for (j = 1; j <= i; j++)
{
printf ("* "); // put any character
}
printf ("\n");
}
}
011
Write a C Program to print the Following Pattern?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
#include <stdio.h>
void main ()
{
int i, j;
for (i = 1; i <= 5; i++)
{
for (j = 1; j <= i; j++)
{
printf ("%d ", i);
}
printf ("\n");
}
}
012
Write a C Program to print the Following Pattern?
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
#include <stdio.h>
void main ()
{
int i, j;
for (i = 1; i <= 5; i++)
{
for (j = 1; j <= i; j++)
{
printf ("%d ", j);
}
printf ("\n");
}
}
013
Write a C Program to print the Following Pattern?
A
B B
C C C
D D D D
E E E E E
#include <stdio.h>
void main ()
{
int i, j;
for (i = 'A'; i <= 'E'; i++)
{
for (j = 'A'; j <= i; j++)
{
printf ("%c ", i);
}
printf ("\n");
}
}
014
Write a C Program to print the Following Pattern?
A
A B
A B C
A B C D
A B C D E
#include <stdio.h>
void main ()
{
int i, j;
for (i = 'A'; i <= 'E'; i++)
{
for (j = 'A'; j <= i; j++)
{
printf ("%c ", j);
}
printf ("\n");
}
}
015
Write a C Program to print the Following Pattern?
* * * * *
* * * *
* * *
* *
*
#include <stdio.h>
void main ()
{
int i, j;
for (i = 1; i <= 5; i++)
{
for (j = 5; j >= i; j--)
{
printf ("* "); //put any character
}
printf ("\n");
}
}
016
Write a C Program to print the Following Pattern?
1 1 1 1 1
2 2 2 2
3 3 3
4 4
5
#include <stdio.h>
void main ()
{
int i, j;
for (i = 1; i <= 5; i++)
{
for (j = 5; j >= i; j--)
{
printf ("%d ", i);
}
printf ("\n");
}
}
017
Write a C Program to print the Following Pattern?
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
#include <stdio.h>
void main ()
{
int i, j;
for (i = 5; i >= 1; i--)
{
for (j = 1; j <= i; j++)
{
printf ("%d ", j);
}
printf ("\n");
}
}
018
Write a C Program to print the Following Pattern?
A A A A A
B B B B
C C C
D D
E
#include <stdio.h>
void main ()
{
int i, j;
for (i = 0; i <= 4; i++)
{
for (j = 4; j >= i; j--)
{
printf ("%c ", i + 65);
}
printf ("\n");
}
}
019
Write a C Program to print the Following Pattern?
A B C D E
A B C D
A B C
A B
A
#include <stdio.h>
void main ()
{
int i, j;
for (i = 4; i >= 0; i--)
{
for (j = 0; j <= i; j++)
{
printf ("%c ", j + 65);
}
printf ("\n");
}
}
.png)