Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- int main() {
- int nota1, nota2;
- float medie;
- string nume = "Barbos", prenume = "Viorel";
- nota1 = 9;
- nota2 = 10;
- medie = (float)(nota1 + nota2) / 2;
- cout<<"Elevul "<<nume<<" "<<prenume<<" are media: "<<medie;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement