Răspuns:
#include <iostream>
using namespace std;
int main ()
{
int a, b, c, s = 0;
cin >> a >> b >> c;
if ( a > 0 )
s = s + a;
if ( b > 0 )
s = s + b;
if ( c > 0 )
s = s + c;
cout << s;
return 0;
}
* asta e in c++, daca ai nevoie in alt limbaj sa spui