Results 1 to 3 of 3

Thread: Help me

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Answers
    2

    Help me

    Hi , i am prem i need a program in ansi c that's out put must be as
    1 22 333 4444 55555 666666
    your friend is confused please help me......


  2. #2
    Expert Member
    Join Date
    Dec 2006
    Answers
    204

    Re: Help me

    for(i=1;i<limit;i++)
    {
    for(j=0;j<i;j++)
    {
    printf("%d",i);
    }
    printf("\t");
    }


    this will do it.


  3. #3
    Expert Member
    Join Date
    Mar 2012
    Answers
    208

    Re: Help me

    #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();
    }


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact