Showing posts with label addition of numbers in perl. Show all posts
Showing posts with label addition of numbers in perl. Show all posts

Thursday, October 9, 2014

Addition of Three Numbers Using Perl

In this article I would like to share with you a very simple program that I wrote using Perl as my programming language. I am a beginner in terms of experience in writing codes using Perl or Practical Extraction Reporting Language.

A programming language developed by one of my favorite programmer Larry Wall way back in 1987 to help him in his system administration work before. This programming language is primarily used in server administration and web programming. What this program will do is to ask the user to enter three numbers and then our program will display the total sum of the three values early provided by our user.

If you have some questions regarding with my work in programming feel free to contact me through my email address at jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

Thank you very much.


Sample Output of Our Program

Program Listing

#!usr/bin/perl
print "\n\n";
print "\t Addition of Three Numbers";
print "\n\n";
print "Enter First Number  : ";
chomp($a=<>);
print "Enter Second Number : ";
chomp($b=<>);
print "Enter Third Number  : ";
chomp($c=<>);

$total_sum = ($a+$b+$c);
print "\n";
print "The total sum of $a, $b and $c is $total_sum.";
print "\n";
print "\t\t Thank You For Using This Program.";
print "\n\n";


 DOWNLOAD SOURCE CODE HERE