a,b - numere reale
citeste a
citeste b
suma <- a+b
scrie suma
prod <- a*b
scrie prod
media <- suma/2
scrie media
daca (a>b) scrie a
altfel scrie b
#include <iostream>
using namespace std;
int main(){
float a,b,suma,prod,media;
cin >> a >> b;
suma=a+b;
cout << suma << endl;
prod=a*b;
cout << prod << endl
media=suma/2;
cout << media << endl;
if(a>b)cout << a;
else cout << b;
}