Hi , i am prem i need a program in ansi c that's out put must be as1 22 333 4444 55555 666666your friend is confused please help me......
Hi , i am prem i need a program in ansi c that's out put must be as1 22 333 4444 55555 666666your friend is confused please help me......
for(i=1;i<limit;i++)
{
for(j=0;j<i;j++)
{
printf("%d",i);
}
printf("\t");
}
this will do it.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,j,n;
cout<<”Enter value of n \n”;
cin>>n;
for(i=0;i<n;i++)
{
for(j=0;j<i;j++)
cout<<i;
}
getch();
}