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 p4;
{introducerea in ordine crescatoare a valorilor}
var a,b,c:real;
begin
writeln('introduceti valorile a,b,c:');
readln(a,b,c);
writeln('valorile in ordine crescatoare');
if (a<b) and (a<c) and (b<c) then
writeln(a,' ',b,' ',c,' ');
if (a<b) and (a<c) and (c<b) then
writeln(a,' ',c,' ',b,' ');
if (b<a) and (b<c) and (a<c) then
writeln(b,' ',a,' ',c,' ');
if (b<a) and (b<c) and (c<a) then
writeln(b,' ',c,' ',a,' ');
if (c<a) and (c<b) and (a<b) then
writeln(c,' ',a,' ',b,' ');
if (c<a) and (c<b) and (b<a) then
writeln(c,' ',b,' ',a,' ');
end.
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more