Skip to content

Instantly share code, notes, and snippets.

@juninhopo
Last active December 15, 2017 13:36
Show Gist options
  • Save juninhopo/8faec58f00208bca4e7172ce1d584f47 to your computer and use it in GitHub Desktop.
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.
//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", &nota1);
printf("Digite sua nota do 2º Bimestre: ");
scanf("%i", &nota2);
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