Program Code
#!/Perl/bin/perl
$var=2;
print("The value assigned to variable initially is ".$var."\n After Multiplication ");
$var=$var*2;
print($var,"\n After Addition and subtraction ");
$var=3+45-23;
print($var);
#!/Perl/bin/perl
$var=2;
print("The value assigned to variable initially is ".$var."\n After Multiplication ");
$var=$var*2;
print($var,"\n After Addition and subtraction ");
$var=3+45-23;
print($var);
Output
0 comments:
Post a Comment