mirror of
https://gitlab.com/blau_araujo/cblc.git
synced 2025-05-10 10:36:37 -03:00
24 lines
493 B
C
24 lines
493 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main(void) {
|
||
|
|
||
|
float nota1 = 7.5;
|
||
|
float nota2 = 9.0;
|
||
|
float nota3 = 8.3;
|
||
|
float nota4 = 8.6;
|
||
|
|
||
|
float soma = nota1 + nota2 + nota3 + nota4;
|
||
|
float media = soma / 4;
|
||
|
|
||
|
puts("============");
|
||
|
printf("Nota 1: %.1f\n", nota1);
|
||
|
printf("Nota 2: %.1f\n", nota2);
|
||
|
printf("Nota 3: %.1f\n", nota3);
|
||
|
printf("Nota 4: %.1f\n", nota4);
|
||
|
puts("------------");
|
||
|
printf("Média : %.1f\n", media);
|
||
|
puts("============");
|
||
|
|
||
|
return 0;
|
||
|
}
|