#include <stdio.h>
int main(){
float percentageScored;
//get the percentage scored by Gaurav
printf("Enter the percentage scored by Gaurav: ");
scanf("%f",&percentageScored);
//University of Toronto-97%
if(percentageScored>=97 && percentageScored<=100){
printf("\nUniversity of Toronto\n\n");
}
//University of British Columbia-95%
if(percentageScored>=95 && percentageScored<=96){
printf("\nUniversity of British Columbia\n\n");
}
//University of Ottawa-90%
if(percentageScored>=90 && percentageScored<=94){
printf("\nUniversity of Ottawa\n\n");
}
//Western University-85%
if(percentageScored>=85 && percentageScored<=89){
printf("\nWestern University\n\n");
}
getchar();
getchar();
return 0;
}
Comments
Leave a comment