Tuesday, February 26, 2019
Pattern
#include<stdio.h>
#include<conio.h>
void main ()
{
int row, I, j, mid;
printf ( " Enter no of row :");
scanf ("%d",&row);
mid=row/2;
for (i=1;i‹=row; i++)
{
for (j=1;j<=row;j++)
{
If(j==1 || j==row || i==1 || i==row)
printf ("* ");
else
printf ("# ");
}
printf("\n");
}
getch();
}
This is new pattern . Pattern no. 1
Subscribe to:
Posts (Atom)