Do modification in above program to display following pattern
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main ()
{
int r,i,j;
printf("Enter number of rows :\n");
scanf("%d",&r);
for(i=1;i<=r;++i)
{
for(j=1;j<=i;++j)printf("%d ",i);
printf("\n");
}
getch();
}