Problem 16: Admission

Suppose you are going to apply for admission in a college. If you got GPA 5 in SSC exam then you can apply for that college. Now give your GPA as input from the keyboard and print “YES” if you can apply otherwise print “NO”.

3,068 total views, 3 views today

Comments

comments

5 thoughts on “Problem 16: Admission”

  1. #include
    int main()
    {
    int x;
    printf(“Enter your ssc GPA\n”);
    scanf(“%d”,&x);
    if(x%5==0)
    printf(“Yes,You can take admission\n”);
    else
    printf(“No,You can’t take admission\n”);
    return 0;
    }

  2. #include
    int main()
    {
    int result;
    printf(“Enter your result:\n”);
    scanf(“%d”,&result);
    if(result%5==0){
    printf(“Yes you can apply \n”);

    }
    else{
    printf(“No you cannot apply\n”);
    }
    }

  3. #include
    int main()
    {
    int n;
    printf(“Enter result\n”);
    scanf(“%d”,&n);
    if(n!=5){
    printf(“Sorry you can not apply\n”);
    }
    else {
    printf(“Yes you can apply\n”);
    }
    }

  4. #include
    int main()
    {
    int GPA;
    printf(“Please enter your GPA:\n”);
    scanf(“%d”,&GPA);
    if (GPA%5==0){
    printf(“You can Apply”);
    }
    else{
    printf(“You can’t Apply”);
    }
    return 0;
    }

  5. #include
    int main()
    {
    float gpa;
    printf(“Enter the GPA:”);
    scanf(“%f”,&gpa);
    if(gpa==5)
    {
    printf(“YES.You can apply”);
    }
    else
    {
    printf(“No. You can’t apply”);
    }
    return 0;
    }

Leave a Reply

Your email address will not be published.