TrabalhosGratuitos.com - Trabalhos, Monografias, Artigos, Exames, Resumos de livros, Dissertações
Pesquisar

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êmicos

Por:   •  20/11/2014  •  413 Palavras (2 Páginas)  •  417 Visualizações

Página 1 de 2

#include <stdio.h>

#include <stdlib.h>

int main ()

{

float notas;

printf ("qual a nota1?\n");

scanf ("%f",&notas);

if (notas>4)

printf ("nota1 aprovado\n");

else

printf ("nota1 reprovado\n");

printf ("qual a nota2?\n");

scanf ("%f",&notas);

if (notas>4)

printf ("nota2 aprovado\n");

else

printf ("nota2 reprovado\n");

printf ("qual a nota3?\n");

scanf ("%f",&notas);

if (notas>4)

printf ("nota3 aprovado\n");

else

printf ("nota3 reprovado\n");

printf ("qual a nota4?\n");

scanf ("%f",&notas);

if (notas>4)

printf ("nota4 aprovado\n");

else

printf ("nota4 reprovado\n");

printf ("qual a nota5?\n");

scanf ("%f",&notas);

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

...

Baixar como (para membros premium)  txt (3.6 Kb)  
Continuar por mais 1 página »
Disponível apenas no TrabalhosGratuitos.com