0
This is the statement: In a college, students with an average of at least 7.0 pass, students with an average of less than 3.0 fail, and others are recovery. Given the two notes of a student, prepare a program in C that inform your situation. Use the colors blue, red and yellow for messages "approved", "failed" and "recovery", respectively.
The logic I managed to do less the part of putting the color. Thank you from now!!
#include <stdio.h>
#include <conio.h>
int main (){
float n1,n2,media;
printf ("Digite a primeira nota:");
scanf ("%f",&n1);
printf ("Digite a segunda nota:");
scanf ("%f",&n2);
media = (n1+n2)/2;
if (media>=7)
printf ("APROVADO");
else{
if (media <3)
printf ("REPROVADO");
else{
if (media >=3)
printf ("RECUPERACAO");
}
}
}
https://answall.com/questions/157898/como-destacar-texto-mudar-cor-em-c-ansi
– aviana