Last active
December 15, 2017 13:36
-
-
Save juninhopo/8faec58f00208bca4e7172ce1d584f47 to your computer and use it in GitHub Desktop.
Este programa recebe duas variáveis para ser calculado uma media (Notas bimestrais) devolvendo uma media anual do aluno.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Autor: Darlan Oliveira | |
//data: 15/12/2017 | |
//Program: Este programa recebe duas variaveis | |
//para ser calculado uma media. (Notas bimestrais) | |
//devolvendo uma media anual do aluno. | |
#include <stdio.h> | |
#include <stdlib.h> | |
main () | |
{ | |
int nota1, nota2; | |
float media; | |
printf("Digite sua nota do 1º Bimestre: "); | |
scanf("%i", ¬a1); | |
printf("Digite sua nota do 2º Bimestre: "); | |
scanf("%i", ¬a2); | |
media = (nota1 + nota2) / 2; | |
printf("Sua media anual foi: %f", media); | |
system("pause"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment