Reginaldojs

exercicio 01,lista2

May 15th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.         float nota1,nota2,media;
  4.         printf("entre com as duas notas:");
  5.         scanf("%f %f",&nota1,&nota2);
  6.              media=(nota1+nota2)/2;
  7.         printf("a meda sera %f",media);
  8.         if(media>=7)
  9.             printf("aprovado");
  10.         else
  11.              printf("reprovado");
  12.        return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment