i need the output in a specific format $n1 followed by $n2 or vice versa this code gives me values in format $n1 newline $n2 what can i do to solve my problem#! /usr/bin/perl -l print "please enter a number: "; $n1 = <STDIN>; print "please enter a number"; $n2 = <STDIN>; if ($n1 < $n2) { print "$n1" , "$n2" ; } else { print "$n2" , "$n1" ; }
In reply to outputs followed by each other by busyvish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |