fork download
  1. with Ada.Text_IO, Ada.Integer_Text_IO;
  2. use Ada.Text_Io, Ada.Integer_Text_IO;
  3. procedure My_program_3 is
  4. num1, num2, num3 : INTEGER:=0;
  5. begin
  6. num1:= 1;
  7. num2:= 2;
  8. num3:= 3;
  9. if ((num1 > num2) and (num1 > num3)) then
  10. put(num1);
  11. elseif (num2 > num3) then
  12. put(num2);
  13. else
  14. put(num3);
  15. end if;
  16. end if;
  17. end My_program_3;
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
gnatgcc -c -pipe -O2 prog.adb
prog.adb:3:11: warning: file name does not match unit name, should be "my_program_3.adb"
prog.adb:11:21: missing ";"
gnatmake: "prog.adb" compilation error
stdout
Standard output is empty