Atps De Algoritimos 5notas Media Das Notas Maior E Menor Nota
Exames: Atps De Algoritimos 5notas Media Das Notas Maior E Menor Nota. Pesquise 861.000+ trabalhos acadêmicosPor: esquerdinha • 20/11/2014 • 413 Palavras (2 Páginas) • 417 Visualizações
#include <stdio.h>
#include <stdlib.h>
int main ()
{
float notas;
printf ("qual a nota1?\n");
scanf ("%f",¬as);
if (notas>4)
printf ("nota1 aprovado\n");
else
printf ("nota1 reprovado\n");
printf ("qual a nota2?\n");
scanf ("%f",¬as);
if (notas>4)
printf ("nota2 aprovado\n");
else
printf ("nota2 reprovado\n");
printf ("qual a nota3?\n");
scanf ("%f",¬as);
if (notas>4)
printf ("nota3 aprovado\n");
else
printf ("nota3 reprovado\n");
printf ("qual a nota4?\n");
scanf ("%f",¬as);
if (notas>4)
printf ("nota4 aprovado\n");
else
printf ("nota4 reprovado\n");
printf ("qual a nota5?\n");
scanf ("%f",¬as);
if (notas>4)
printf ("nota5 aprovado\n");
else
printf ("nota5 reprovado\n");
float nota1,nota2,nota3,nota4,nota5,media;
media=nota1+nota2+nota3+nota4+nota5/5;
printf ("a media de notas eh %2f \n",media);
system ("PAUSE");
return 0;
}
heheheheheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeettttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffkgkgkgkgkhgkhkhihitrikmgdmdfm
...