Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //APS 01 EX 01
- //ALGORITMOS 02 PROF MALGARETE - CENTRO TECNOLOGICO UNIVERSIDADE POSITIVO
- //GILMAR JUNIOR DOS PASSOS
- #include "stdlib.h"
- #include "conio.h"
- #include "stdio.h"
- #include "string.h"
- #include "locale.h"
- void main()
- {
- setlocale(LC_ALL, "Portuguese");
- int nota, somatorio, media, cont;
- nota=0;
- somatorio=0;
- media=0;
- for (cont=1;cont<=3;cont++)
- {
- printf ("Entre com a nota do aluno:\n");
- scanf ("%d",¬a);
- somatorio = nota + somatorio;
- }
- media = somatorio / 3;
- printf ("A média de notas do aluno é:\n");
- printf("%d",media);
- getch ();
- }
Advertisement
Add Comment
Please, Sign In to add comment