Kód: Vybrat vše
if (a,b=0) then
    begin
      WriteLn('Zadane cislo ', a,b, ' je shodne.');
    end; Kód: Vybrat vše
if (a,b=0) then
    begin
      WriteLn('Zadane cislo ', a,b, ' je shodne.');
    end; Kód: Vybrat vše
write('Zadej dvě celá čísla oddělená mezerou: ');
readln(a,b);Kód: Vybrat vše
if (a=b) then
    begin
      WriteLn('Zadane cislo ', a=b, ' je shodne.');
    end
  else
    begin
      if (a>b) then
        WriteLn('Zadane cislo ', a>b, ' a je vetsi nez b.');
      end
    else
        WriteLn('Zadane cislo ', a>b, ' b je mensi nez a.');
    end;      Kód: Vybrat vše
if (a=b) then
  begin
    WriteLn('Zadane cislo ', a=b, ' je shodne.');
  end
else
  begin
    if (a>b) then
      WriteLn('Zadane cislo ', a>b, ' a je vetsi nez b.');
    else
      WriteLn('Zadane cislo ', a>b, ' b je mensi nez a.');
  end;
Zpět na “Programování a tvorba webu”
Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 14 hostů