programming-examples/perl/Basics/Arithmetic Operators in action.pl

8 lines
146 B
Perl
Raw Normal View History

2019-11-18 14:44:36 +01:00
printf "%d\n", 4 * 5 / 2;
printf "%d\n", 5 ** 3;
printf "%d\n", 5 + 4 - 2 * 10;
printf "%d\n", (5 + 4 - 2 ) * 10;
printf "%d\n", 11 % 2;