Second output: 47.25
First output: 14 + 2
Second output: 16
First output: 33.25 + 2
Second output: 35.25
The code will throw an error.
What will be the output of the following Perl code?
$var1 = 3;
$var2 = 5.5;
$var3 = $var1 + $var2**2;
$var1++;
print "First output: $var3 + 2\n";
print "Second output: ", $var3 + 2,"\n";
Correct Answer:
First output: 33.25 + 2
Second output: 35.25
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Perl MCQ Questions