-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/perl | ||
#=============================================================================== | ||
# | ||
# FILE: ex1_1.pl | ||
# | ||
# USAGE: ./ex1_1.pl | ||
# | ||
# DESCRIPTION: Read two numbers from the user and print their | ||
# multiplication | ||
# | ||
# AUTHOR: Ynon Perek (), ynonperek@gmail.com | ||
# COMPANY: | ||
# VERSION: 1.0 | ||
# CREATED: 11/13/2011 11:11:55 | ||
# REVISION: --- | ||
#=============================================================================== | ||
|
||
use strict; | ||
use warnings; | ||
|
||
print "Type in the first number\n"; | ||
my $num1 = <>; | ||
chomp $num1; | ||
|
||
print "Type in the second number\n"; | ||
my $num2 = <>; | ||
chomp $num2; | ||
|
||
my $mul = $num1 * $num2; | ||
print "Multiplication is: $mul\n"; | ||
|