Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
program p5;
{calcularea numarului ramas in cutie dintre a,b,c,cunoscand valoarea lor}
var a,b,c,s:integer;
begin
writeln('introduceti valorile a,b,c:');
readln(a,b,c);
s:=a+b or b+c or c+a;
writeln('suma a doua numere scoase din cutie:');
readln(s);
if s=a+b then
writeln(c);
if s=b+c then
writeln(a);
if s=a+c then
writeln(b);
end.
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more