Код: Выделить всё
#include
int main() {
float gpa, afi, shr;
printf("Enter your GPA:");
scanf("%f",&gpa);
printf("Enter your annual family income:");
scanf("%f",&afi);
printf("Enter your service hours:");
scanf("%f",&shr);
printf("\n---------------");
printf("\nSCHOLARSHIP DETAILS");
printf("\n---------------");
printf("\nGPA: %.2f", gpa);
printf("\nAnnual Family Income: %.2f", afi);
printf("\nCommunity Servuce Hours: %.2f", shr);
if(gpa 400000){
printf("\nScholarship Status:Denied(Family Income is too high)");
}
}
}
}else{
if(gpa > 3.5){
printf("\nScholarship Status:Denied(GPA is too low)");
}
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... ce-it-is-n