-2
Hello, could you explain the part of that code?
int nota[2];
scanf( "%s %d", nome, &horas );
And that part
int i = 0;
while( i < 2 ) {
scanf( "%d", ¬a[i] );
if( nota[i] > 100 || nota[i] < 0 ) {
// printf( "Nota fora do intervalo\n" );
} else {
i++;
}
}
//Media Ponderada
float calculo = media * 0.4 + nota[0] * 0.1 + nota[1] * 0.5;
if( nota[1] < 70 ) {
While (i < 2), **note[i], note[0], note[1] and note[2]
Post the complete code. In what you have posted missing definitions of variables and also calculations (for example calculation or media reading). The last line doesn’t make sense.
– anonimo
@anonymo I can post on a website for access to part.
– betafico123