#1 Pattern in c language.
#1 Pattern in c language
This blog is first post in series of pattern related program in c language.
The given below program is simple pattern in c language.
The given below program is simple pattern in c language.
We have to print the pattern like this in our console as output.
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
This question consist of 5 rows and 5 columns .The basic concept
while solving such type of question is that at first find out the number of rows and columns.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i ,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=5;j++)
{
printf("*");
}
printf("\n");
}
getch();
}
#1 Pattern in c language.
Reviewed by Deepak kumar soni
on
December 29, 2018
Rating:
No comments: