Your input includes the "enter" from the keyboard. You need to chomp your input. For example:
print "Enter your first number:\n "; $number=<STDIN>;
Needs to become something like:
print "Enter your first number:\n "; $number=<STDIN>; chomp $number;
In reply to Re: output question
by Anonymous Monk
in thread output question
by enderw2014
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |