Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- char nume[20];
- char adresaEmail[30];
- int nota1;
- int nota2;
- int nota3;
- float medie;
- printf("Introdu numele, adresa de email si cele trei note:\n");
- scanf("%s%s%d%d%d", nume, adresaEmail, ¬a1, ¬a2, ¬a3);
- medie = (float)(nota1 + nota2 + nota3) / 3;
- printf("Studentul cu emailul: %s are media: %10.2f!\n", adresaEmail, medie);
- printf("Numele este: %s\n", nume);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement