Question: Please use the perl script file myperladd2.pl discussed in Lab 8 as a template to complete the following tasks: $ cat > myperladd2.pl #!/usr/bin/perl -w
Please use the perl script file myperladd2.pl discussed in Lab 8 as a template to complete the following tasks:
$ cat > myperladd2.pl #!/usr/bin/perl -w print "Please enter the first number: "; $first = <>; print "Please enter the second number: "; $second = <>; $total = $first + $second; chomp($first); chomp($second); print "$first + $second = $total ";
Create a new perl script file, myperlmin4.pl, that will read 4 numbers and determine which number is the smallest using if-statements, and then display the smallest number. You are NOT allowed to use any perl built-in functions, such as sort in your script;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
