Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Write a program for 1 232 34543 4567654? 
Here, We write a program for given query.

int main()
{
    int i,j,k,l=0,n;
    printf("Enter the given length
");
    scanf("%d",&n);
    for(i=1;i<=n;i++)
    {
       k=2;
       for(j=0;j<i+l;j++)
       {
          if(i<=j)
          {
             printf("%d",i+j-k);
             k=k+2;
          }
          else
          printf("%d",i+j);
      }
      l++;
      printf("
");
   }
}
Posted By: Name:Rajesh Kr URL: Write a program for 1 232 34543 4567654?