Results 1 to 7 of 7

Thread: programing help!!!!!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    planket is offline Senior Member+
    Last Online
    24th January 2014 @ 11:38 AM
    Join Date
    20 May 2010
    Location
    In Your HDD
    Age
    32
    Gender
    Male
    Posts
    207
    Threads
    72
    Credits
    0
    Thanked
    14

    Default programing help!!!!!

    Bro muje loops key kuch Questions ka output sikhaa dina.
    ap ki bari merhbani ho gi.
    mein ney just concept lena hai.

    plzzzzzzzzz
    40,50 Question hai just Ans samjana hai,



    Q1) int n=45;
    int m=32;
    while(m>0)
    {
    cout<<n/m;
    n%=m;
    m/=2;
    }
    Ans : 101101
    but How?


    Q2) int x,y;
    x=-1;
    y=0;
    while(x<3)
    {
    y+=2;
    x+=1;
    }
    cout<<"x="<<x<<"\n"<<"y="<<y<<endl;;
    Ans:x=3
    y=8;
    but how?

    Q3)int m=3,n=2;
    while(n<=74)
    {
    n=5*n+m;
    m++;
    if(m>=5)
    m=m/2;
    cout<<n<<" "<<m<<endl;
    }
    Ans :
    13 4
    69 2
    347 3
    but How?

    Brother yeh samja dain keh in k yeh Ans kaise ay bcz mein ney Ans sath mention kar diy hain.

    plzzzzzzzz
    Last edited by planket; 23rd February 2011 at 08:23 AM.

Similar Threads

  1. Answered exe programing help
    By top asian in forum Solved Problems (IT)
    Replies: 17
    Last Post: 13th March 2013, 10:38 PM
  2. Help in Programing
    By AQIB ILYAS in forum Ask an Expert
    Replies: 0
    Last Post: 27th May 2012, 10:08 AM
  3. programing
    By zahidalicute in forum Ask an Expert
    Replies: 4
    Last Post: 18th February 2012, 01:13 PM
  4. Solved programing please.........
    By hasib ahmed in forum Solved Problems (IT)
    Replies: 8
    Last Post: 13th November 2011, 01:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •