code Blocks Help me!! urgent!!

Discussion in 'General Computer Support' started by aisah69, Feb 1, 2011.

  1. aisah69

    aisah69

    Joined:
    Feb 1, 2011
    Messages:
    1
    i'm using codeclocks,try to fix this for me
    #include <stdio.h>
    #include <stdlib.h>

    int main()
    {
    char u;
    char field;
    int age;

    printf("Enter you university: \n");
    printf("Enter your field: \n");
    printf("Enter your age: \n");

    scanf("%c", &u);
    scanf("%c", &field);
    scanf("%d", &age);


    if ( u == 'uitm') (this line gives warning: multi-character character constant)

    { if ( age >= 25)
    printf("Congratulation 1");
    else if (age >=25 && age <=30)
    printf("Congratulation 2");
    else
    printf("Sorry 1");
    }
    else
    {
    if(age >= 25 && age <=40)
    printf("Congratulation 3");
    else if (age >=25 && age<=35)
    printf("Congratulation 4");
    else
    printf("Sorry 2");
    }
    return 0;

    }
     
    aisah69, Feb 1, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Security Advisory

    !!URGENT!! Tor Vulnerability Discovered !!URGENT!!

    Security Advisory, Aug 6, 2007, in forum: Computer Security
    Replies:
    1
    Views:
    965
    http://tinyurl.com/23k3dt@$NIFF-deeply.ahh
    Aug 11, 2007
  2. ch_mshahid

    Please Help Its urgent C++ Code required

    ch_mshahid, Jul 7, 2008, in forum: General Computer Support
    Replies:
    1
    Views:
    766
    jcas1411
    Jul 31, 2008
  3. pooja
    Replies:
    0
    Views:
    1,185
    pooja
    Mar 3, 2009
  4. Griffin
    Replies:
    0
    Views:
    633
    Griffin
    Aug 27, 2010
  5. Gurumurthy_G
    Replies:
    0
    Views:
    428
    Gurumurthy_G
    Jul 9, 2013
Loading...

Share This Page