sonia has asked for the wisdom of the Perl Monks concerning the following question:
</c> output shows followingprint(qq(enter marks in maths), \n); $math=<STDIN>; print(qq(enter marks in science),\n); $sci=<STDIN>; print(qq(enter marks in history),\n); $hist=<STDIN>; print(qq(enter marks in geography),\n); $geo=<STDIN>; $sum=($math+$sci+$hist+$geo); $per=($sum/400); $percentage=($per*100); print(qq(your percentage is=), $percentage);
the unwanted characters SCALAR<0X124DA44> are repeated for every entry<enter marks in mathsSCALAR<0X124DA44>>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: output difficult to understand
by Athanasius (Cardinal) on Feb 11, 2014 at 13:04 UTC | |
|
Re: output difficult to understand
by parv (Parson) on Feb 11, 2014 at 11:01 UTC | |
by jellisii2 (Hermit) on Feb 11, 2014 at 12:47 UTC |