$a=<STDIN>;chomp $a;$b=<STDIN>;chomp $b;$c=<STDIN>;chomp $c;if($a>$b){ if($b>$c) { print"$a is max."; } elsif($c>$b) { if($c<$a) { print "$a is max."; } elsif($c>$a) { print "$c is max"; } }elsif($b>$a) { if($b>$c) { print "$b is max."; } elsif($c>$b) { print "$c is max."; } } else { print " $c is max."; }
5 17 9
Standard output is empty
Missing right curly or square bracket at prog.pl line 38, at end of line syntax error at prog.pl line 38, at EOF Execution of prog.pl aborted due to compilation errors.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!