Answer to Question #273660 in C for Sathish

Question #273660

Write a program to find the counseling slot based on the student's Cutoff marks, age, HSC and SSLC marks

1
Expert's answer
2021-12-01T00:53:09-0500
#include<stdio.h>




int main(){


    int cutOffMarks, age, hscMarks,sslcMarks;
    printf("Please enter the obtained cutOff marks:\n");
    scanf("%d",&cutOffMarks);


    printf("Please enter the age: \n");
    scanf("%d",&age);


    printf("Please enter the hscMarks: \n");
    scanf("%d",&hscMarks);


    printf("Please enter the sslcMarks: \n");
    scanf("%d",&sslcMarks);


    printf("Obtained marks:%d \n",cutOffMarks);
    printf("Obtained marks:%d \n",age);
    printf("Obtained marks:%d n",hscMarks);
    printf("Obtained marks:%d \n",sslcMarks);


    if(cutOffMarks>80){
        printf("Alloted in slot 1");
    }else if(80>cutOffMarks>50){


        printf("Alloted in slot 2");
    }else if(cutOffMarks<50){
        printf("Alloted in slot 1");


    }






return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS