Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main(int argc, char *argv[])
- {
- float n1, n2, n3, media;
- printf("n Dgite a primeira nota: ");
- scanf("%f", &n1);
- printf("n Dgite a segunda nota: ");
- scanf("%f", &n2);
- media = (n1 + n2)/2 ;
- if ( media < 6);
- {
- printf(" A media é: %f n",media "n Reprovado.");
- }
- else if ( media >= 6 );
- {
- printf("Aprovado!!! sua nota é n", media )
- }
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment