Você está na página 1de 1

#include <stdio.

h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause")
or input loop */

int main() {
float N1, N2, N3;

printf("Digite a 1 notas\n");
scanf("%f", &N1, &N2, &N3);

printf("Digite a 2 notas\n");
scanf("%f", &N1, &N2, &N3);

printf("Digite a 3 notas\n");
scanf("%f", &N1, &N2, &N3);

if(N1 > N2 && N1 > N3){


printf("Sua maior nota foi:%.1f\n", N1);
}
else{
if(N2 > N1 && N2 > N3){
printf("Sua maior nota foi:%.1f\n", N2);
}

else{
(N3 > N1 && N3 > N2);

printf("Sua maior nota foi:%.1f\n", N3);


}
}

return 0;
}

Você também pode gostar