Write the program to print following patterns 2
Programmed by : kiran shrestha
Roll no. : 10121
Programmed on : 7th feb, 2011*/
#include <stdio.h>
#include <conio.h>
void main ()
{
int i,j,a=0;
for (j=1;j<=5;j++)
{
for (i=1;i<=5;i++)
{
if(j==i)
printf (“%d\t”,a);
else
printf (“%d\t”,j);
}
printf (“\n”);
}
getch();
}
output
01111
20222
33033
44404
55550