Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Latest topics
» professional assembly language:(Ebook)
Sun Aug 09, 2009 2:54 pm by Admin

» C - Question Paper Quark Media House India Pvt. Ltd.
Tue Jul 08, 2008 2:02 am by Admin

» Simple Code in C which calls another exe file
Thu Jun 26, 2008 4:03 pm by mathes

» Cricket Game in C....Try this out...
Thu Jun 26, 2008 3:58 pm by mathes

» Calculator Program in PERL
Thu Jun 26, 2008 3:33 pm by mathes

» Airtel Music on C...Try This guys
Thu Jun 26, 2008 3:30 pm by mathes

Search
 
 

Display results as :
 


Rechercher Advanced Search

Calculator Program in PERL

Post new topic   Reply to topic

View previous topic View next topic Go down

Calculator Program in PERL

Post by mathes on Thu Jun 26, 2008 3:33 pm

#/usr/bin/perl
#Coded By (ACU)Em0
#retarded calculator Smile

print q{
=====================
* Coded By (ACU)Em0 *
* Team ih4cker *
* ih4cker.com *
=====================
};

print "Enter your 1st number: ";
chop ($first = );
print "Enter your 2nd number: ";
chop ($second = );



print "$first + $second = ";
$answer = $first + $second;
print "$answer\n";


print "$first - $second = ";
$answer = $first - $second;
print "$answer\n";


print "$first * $second = ";
$answer = $first * *second;
print "$answer\n";


print "$first / $second = ";
$answer = $first / $second;
$remain = $first % $second;
print "$answer with a remainder of $remain.\n"



Was ur calculator working????? lol!

mathes

Number of posts: 20
Age: 20
Registration date: 2008-06-26

View user profile

Back to top Go down

View previous topic View next topic Back to top


Post new topic   Reply to topic
Permissions of this forum:
You can reply to topics in this forum