Răspuns :
Pascal:
var
a,b,c:integer;
begin
writeln('Citeste trei numere');
read(a,b,c);
writeln('Suma celor doua mai mari numere: ');
if a>b then
if c>b then write(a+c)
else
write(a+b)
else
if c>a then write(b+c)
else
write(b+a);
end.
C++
#include <iostream>
using namespace std;
int main()
{
cout<<"Trei numere\n";
int val1, val2, val3;
cin >> val1;
cin >> val2;
cin >> val3;
int sum=val1+val2+val3;
if(val3>val1)
val3=val1;
if(val3>val2)
val3=val2;
sum-=val3;
cout <<"Summa = " << sum << endl;
return 0;
}