001
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 <= 5; j++)
{
printf ("* "); //put any character
}
printf ("\n");
}
}
002
Write a C Program to print the Following Pattern?
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 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 <= 5; j++)
{
printf ("%d ", i);
}
printf ("\n");
}
}
003
Write a C Program to print the Following Pattern?
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
#include <stdio.h>
void main ()
{
int i, j;
for (i = 1; i <= 5; i++)
{
for (j = 1; j <= 5; j++)
{
printf ("%d ", j);
}
printf ("\n");
}
}
004
Write a C Program to print the Following Pattern?
A A A A A
B B B B B
C C C C C
D 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 <= 'E'; j++)
{
printf ("%c ", i);
}
printf ("\n");
}
}
005
Write a C Program to print the Following Pattern?
A B C D E
A B C D E
A B C D E
A B C D E
A B C D E
#include <stdio.h>
void main ()
{
int i, j;
for (i = 'A'; i <= 'E'; i++)
{
for (j = 'A'; j <= 'E'; j++)
{
printf ("%c ", j);
}
printf ("\n");
}
}
006
Write a C Program to print the Following Pattern?
5 5 5 5 5
4 4 4 4 4
3 3 3 3 3
2 2 2 2 2
1 1 1 1 1
#include <stdio.h>
void main ()
{
int i, j;
for (i = 5; i >= 1; i--)
{
for (j = 1; j <= 5; j++)
{
printf ("%d ", i);
}
printf ("\n");
}
}
007
Write a C Program to print the Following Pattern?
5 4 3 2 1
5 4 3 2 1
5 4 3 2 1
5 4 3 2 1
5 4 3 2 1
#include <stdio.h>
void main ()
{
int i, j;
for (i = 5; i >= 1; i--)
{
for (j = 5; j >= 1; j--)
{
printf ("%d ", j);
}
printf ("\n");
}
}
008
Write a C Program to print the Following Pattern?
E E E E E
D D D D D
C C C C C
B B B B B
A A A A A
#include <stdio.h>
void main ()
{
int i, j;
for (i = 'E'; i >= 'A'; i--)
{
for (j = 'E'; j >= 'A'; j--)
{
printf ("%c ", i);
}
printf ("\n");
}
}
009
Write a C Program to print the Following Pattern?
E D C B A
E D C B A
E D C B A
E D C B A
E D C B A
#include <stdio.h>
void main ()
{
int i, j;
for (i = 'E'; i >= 'A'; i--)
{
for (j = 'E'; j >= 'A'; j--)
{
printf ("%c ", j);
}
printf ("\n");
}
}