Advertisement
barbos01

Untitled

Apr 10th, 2022
1,013
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4. int main() {
  5.     int nota1, nota2;
  6.     float medie;
  7.     string nume = "Barbos", prenume = "Viorel";
  8.     nota1 = 9;
  9.     nota2 = 10;
  10.     medie = (float)(nota1 + nota2) / 2;
  11.     cout<<"Elevul "<<nume<<" "<<prenume<<" are media: "<<medie;
  12.    
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement