Page 1 of 2 12 LastLast
Results 1 to 12 of 18

Thread: c++ question

  1. #1
    shamsgul's Avatar
    shamsgul is offline Senior Member+
    Last Online
    12th November 2019 @ 10:37 PM
    Join Date
    21 Jun 2009
    Posts
    317
    Threads
    46
    Credits
    26
    Thanked
    12

    Default c++ question

    plz agar is k answer kisi ko aate ha wo mjhe reply kar plz urgent this my number -------------
    Attached Images Attached Images  
    Last edited by *KHAN*JEE*; 6th June 2010 at 01:23 PM. Reason: Cell Number Removed...

  2. #2
    saad salman is offline Senior Member+
    Last Online
    15th August 2013 @ 12:20 AM
    Join Date
    26 Mar 2010
    Age
    33
    Posts
    60
    Threads
    11
    Credits
    935
    Thanked
    7

    Default

    bhai jaan is main kya mushkil hy....!!!!

  3. #3
    shamsgul's Avatar
    shamsgul is offline Senior Member+
    Last Online
    12th November 2019 @ 10:37 PM
    Join Date
    21 Jun 2009
    Posts
    317
    Threads
    46
    Credits
    26
    Thanked
    12

    Default

    answer btaao yarr is k aap ko to aati hogi c++ magar mhje to nahi aati plz aap is k answer btaye

  4. #4
    rashidali242's Avatar
    rashidali242 is offline Junior Member
    Last Online
    1st October 2013 @ 02:38 AM
    Join Date
    23 Oct 2009
    Location
    swabi
    Posts
    5
    Threads
    0
    Credits
    0
    Thanked
    0

    Default

    BHI Agar aap ko c++ ki samaj hy hi nahi to pr q poach rahy ho

  5. #5
    ishwa's Avatar
    ishwa is offline Senior Member+
    Last Online
    15th June 2010 @ 06:17 PM
    Join Date
    04 Jun 2010
    Location
    dil walon ki nagri mein
    Posts
    242
    Threads
    4
    Credits
    0
    Thanked
    3

    Default

    solution of 2

    #include <iostream.h>
    #include <conio.h>
    void main()
    {
    clrscr();
    int a,b,c,d,e,f;
    cout<<"Enter 1st no=";
    cin>>a;
    cout<<"enter 2nd no=";
    cin>>b;
    c= a+b;
    d= a*b;
    e= a-b;
    f= a/b;

    cout<<"Sum="<<c<<endl;
    cout<<"product="<<d<<endl;
    cout<<"difference="<<e<<endl;
    cout<<"quotient="<<f;
    getch();
    }

  6. #6
    ishwa's Avatar
    ishwa is offline Senior Member+
    Last Online
    15th June 2010 @ 06:17 PM
    Join Date
    04 Jun 2010
    Location
    dil walon ki nagri mein
    Posts
    242
    Threads
    4
    Credits
    0
    Thanked
    3

    Default

    solution of 4

    FINDING GREATER NO

    #include <iostream.h>
    #include <conio.h>
    void main()
    {
    clrscr();
    int a,b,c;
    cout<<"enter 1st no=";
    cin>>a;
    cout<<"enter 2nd no=";
    cin>>b;
    cout<<"enter 3rd no=";
    cin>>c;

    if(a>b)
    if(a>c)
    cout<<"1st no is greater";
    else
    cout<<"3rd no is greater"
    else
    if(b>c)
    cout<<"2nd no is greater";
    else
    cout<<"3rd no is greater";
    getch()
    }

  7. #7
    ishwa's Avatar
    ishwa is offline Senior Member+
    Last Online
    15th June 2010 @ 06:17 PM
    Join Date
    04 Jun 2010
    Location
    dil walon ki nagri mein
    Posts
    242
    Threads
    4
    Credits
    0
    Thanked
    3

    Default

    solution of 4

    FINDING SMALLER NO

    #include <iostream.h>
    #include <conio.h>
    void main()
    {
    clrscr();
    int a,b,c;
    cout<<"enter 1st no=";
    cin>>a;
    cout<<"enter 2nd no=";
    cin>>b;
    cout<<"enter 3rd no=";
    cin>>c;

    if(a<b)
    if(a<c)
    cout<<"1st no is smaller";
    else
    cout<<"3rd no is smaller";
    else
    if(b<c)
    cout<<"2nd no is smaller";
    else
    cout<<"3rd no is smaller";
    getch();
    }

  8. #8
    ishwa's Avatar
    ishwa is offline Senior Member+
    Last Online
    15th June 2010 @ 06:17 PM
    Join Date
    04 Jun 2010
    Location
    dil walon ki nagri mein
    Posts
    242
    Threads
    4
    Credits
    0
    Thanked
    3

    Default

    solution of 6

    #include <iostream.h>
    #include <conio.h>
    void main()
    {
    clrscr();
    int a,b,c;
    cout<<"enter any no="
    cin>>a;
    b=a*a;
    c=a*a*a;
    cout<<"square="<<b<<endl;
    cout<<"cube="<<c<<;
    getch();
    }

  9. #9
    Ganxtr's Avatar
    Ganxtr is offline Advance Member
    Last Online
    5th July 2019 @ 09:15 AM
    Join Date
    15 Nov 2009
    Location
    CRIME CITY
    Posts
    1,740
    Threads
    18
    Credits
    83
    Thanked
    100

    Default

    ;-)

  10. #10
    ishwa's Avatar
    ishwa is offline Senior Member+
    Last Online
    15th June 2010 @ 06:17 PM
    Join Date
    04 Jun 2010
    Location
    dil walon ki nagri mein
    Posts
    242
    Threads
    4
    Credits
    0
    Thanked
    3

    Default

    [QUOTE=Ganxtr;2119403];-)[/QUOTE

    wt iz dis?

  11. #11
    shamsgul's Avatar
    shamsgul is offline Senior Member+
    Last Online
    12th November 2019 @ 10:37 PM
    Join Date
    21 Jun 2009
    Posts
    317
    Threads
    46
    Credits
    26
    Thanked
    12

    Default

    Thanks man

  12. #12
    sahibzada8 is offline Senior Member+
    Last Online
    23rd July 2010 @ 05:01 PM
    Join Date
    18 Mar 2010
    Posts
    33
    Threads
    4
    Credits
    0
    Thanked: 1

    Default

    In Question 5 Part a
    Remove The semicolon(
    because ; can't be use with if statement

Page 1 of 2 12 LastLast

Similar Threads

  1. Solved Q21. ITD Winner Rank Question (Final Question)
    By Afridi in forum ITDunya 18th Anniversary (8 Nov 2023)
    Replies: 9
    Last Post: 8th November 2011, 10:09 PM
  2. new game question with question..........
    By lucky shah in forum Baat cheet
    Replies: 12
    Last Post: 16th July 2010, 02:53 AM
  3. Question???????
    By Assasian in forum Introduction
    Replies: 16
    Last Post: 11th July 2010, 11:52 PM
  4. a little question
    By esr in forum Ask an Expert
    Replies: 8
    Last Post: 10th October 2008, 12:02 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
  •