Results 1 to 8 of 8

Thread: Computer course Help!

  1. #1
    suleman115 is offline Advance Member
    Last Online
    9th April 2021 @ 03:40 PM
    Join Date
    14 Dec 2008
    Location
    Moon
    Gender
    Male
    Posts
    822
    Threads
    111
    Credits
    144
    Thanked
    16

    Default Computer course Help!

    Below is the program for showning biggest no out three numbers and aslo the grade of the number
    grade "a" is 80% "b" is 65-79% "c" is 50-64%
    now the problem is for example we write three numbers
    1st is 60 and second is 87 and third is 92 then it shows biggest number c but shows the grade of 1st no "c"
    now tell me what is prblem in the program that it always show the grade of the first number.
    plzz replay faster as tomorrow is my sister class and the teacher will check the program.
    Thanks in anticipation.


    # include <stdio.h>
    # include <conio.h>

    void main()
    {
    clrscr();
    int x,m2,m3;
    printf("enter the marks of your three subjects!");
    scanf("%d %d %d",&x,&m2,&m3);
    {
    if (x<m2&&m2>m3)
    printf("max = m2");
    else
    if (x<m3)
    printf("max = m3");
    else
    printf("max = m1");
    } {
    if(x>=80)
    printf("a");
    else if (x>=65)
    printf("b");
    else if (x>=50)
    printf("c");

    }
    getch();
    }

  2. #2
    suleman115 is offline Advance Member
    Last Online
    9th April 2021 @ 03:40 PM
    Join Date
    14 Dec 2008
    Location
    Moon
    Gender
    Male
    Posts
    822
    Threads
    111
    Credits
    144
    Thanked
    16

    Default where are experts?

    Experts! where are you!
    please come and help me.
    plz
    plz
    plz
    plzzzzzzzzz

  3. #3
    suleman115 is offline Advance Member
    Last Online
    9th April 2021 @ 03:40 PM
    Join Date
    14 Dec 2008
    Location
    Moon
    Gender
    Male
    Posts
    822
    Threads
    111
    Credits
    144
    Thanked
    16

    Default

    Any one there?

  4. #4
    suleman115 is offline Advance Member
    Last Online
    9th April 2021 @ 03:40 PM
    Join Date
    14 Dec 2008
    Location
    Moon
    Gender
    Male
    Posts
    822
    Threads
    111
    Credits
    144
    Thanked
    16

    Default

    plz help i need it urgently!!!!!

  5. #5
    suleman115 is offline Advance Member
    Last Online
    9th April 2021 @ 03:40 PM
    Join Date
    14 Dec 2008
    Location
    Moon
    Gender
    Male
    Posts
    822
    Threads
    111
    Credits
    144
    Thanked
    16

    Default

    my pm box is full showing many message but when i check it it was empty and haven't had any space for messages.plz help!!!

  6. #6
    sayhellotoit's Avatar
    sayhellotoit is offline Senior Member
    Last Online
    23rd September 2017 @ 07:51 PM
    Join Date
    01 May 2009
    Posts
    1,003
    Threads
    5
    Credits
    53
    Thanked
    127

    Default

    Masla yeh hay keh max chahay koi bhi niklay magar aap hamesha pehlay number x ko hi 80,65 aur 50 say compare ker rahay hain.
    Iss tarha say kerain:
    # include <stdio.h>
    # include <conio.h>

    void main()
    {
    int x, m1, m2, m3;
    clrscr();
    printf("enter the marks of your three subjects!");
    scanf("%d %d %d",&m1,&m2,&m3);
    {
    if (m1<m2&&m2>m3)
    x= m2;
    else
    if (m1<m3)
    x= m3;
    else
    x= m1;

    printf("max = %d",x);
    } {
    if(x>=80)
    printf("a");
    else if (x>=65)
    printf("b");
    else if (x>=50)
    printf("c");

    }
    getch();
    }

  7. #7
    suleman115 is offline Advance Member
    Last Online
    9th April 2021 @ 03:40 PM
    Join Date
    14 Dec 2008
    Location
    Moon
    Gender
    Male
    Posts
    822
    Threads
    111
    Credits
    144
    Thanked
    16

    Default

    sayhellotoit thanks for the help but i already had found the solution but still thanks.
    and thanks to those users you visit this thread and try to help.

  8. #8
    IT.BOY's Avatar
    IT.BOY is offline Senior Member
    Last Online
    17th November 2017 @ 12:13 PM
    Join Date
    26 Dec 2007
    Location
    *MAA KI AGOOSH*
    Gender
    Male
    Posts
    28,374
    Threads
    651
    Credits
    998
    Thanked
    3079

    Default

    [FONT="Jameel Noori Nastaleeq"][CENTER][COLOR="Blue"][SIZE="5"][B]Coming Soon...:)[/B][/SIZE][/COLOR][/CENTER][/FONT]

Similar Threads

  1. Replies: 45
    Last Post: 31st January 2018, 02:42 PM
  2. Replies: 18
    Last Post: 27th August 2011, 11:46 PM
  3. Insaan Aur Computer K Darmiyan Muqable Mein Computer Jeet Gaya
    By smart_bilal123 in forum General Knowledge
    Replies: 25
    Last Post: 11th July 2011, 09:44 AM
  4. Replies: 10
    Last Post: 7th February 2011, 07:41 PM

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
  •