Results 1 to 2 of 2

Thread: C Program Code

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Answers
    1

    C Program Code

    Please give me a codin for this ouput?

    12
    11 1
    10 2
    9 3
    8 4
    7 5
    6


  2. #2
    Junior Member
    Join Date
    Jan 2008
    Answers
    8

    Re: C Program Code

    Quote Originally Posted by arun12it View Post
    Please give me a codin for this ouput?

    12
    11 1
    10 2
    9 3
    8 4
    7 5
    6
    Try this only if u are not able to solve the puzzle,

    int num1=12,num2,i;
    clrscr();
    num2=num1/2 - 1;
    for(i=0;i<7;i++){
    printf("\n");
    printf("%d",num1);
    if((i<(num2+1))&&(i)){
    printf("\t%d",i);
    }
    num1--;
    }

    More you can try.


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