with Ada.Text_IO, Ada.Integer_Text_IO;use Ada.Text_Io, Ada.Integer_Text_IO;procedure My_program_3 isnum1, num2, num3 : INTEGER:=0;beginnum1:= 1;num2:= 2;num3:= 3;if ((num1 > num2) and (num1 > num3)) thenput(num1);elseif (num2 > num3) thenput(num2);else put(num3);end if;end if;end My_program_3;
Standard input is empty
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
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!