Categories
Perl

Square Root Converter in PERL

 I will show you how to write a Perl program that will ask the user to give a number and then the program will convert the given number to it’s square root equivalent.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.


Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing


# square_root.pl
# Author : Jake Rodriguez Pomperada, MAED-IT
# Date   : November 4, 2019   Monday
# Email  : jakerpomperada@gmail.com
do {
system("cls");
print "\n\n";
print "\tSquare Root Converter in PERL";
print "\n\n";
print "\tGive a Number : ";
chomp($num_val =<>);
$result = sqrt($num_val);
print "\n";
print "\tThe Square Root Value of $num_val is $result.";
print "\n\n";
print "\tDo you want to continue Y/N? : ";
chomp($reply =<>);
} while (uc $reply eq 'Y');
print "\n";
print "\tEnd of Program";
print "\n\n";

Leave a Reply

Your email address will not be published. Required fields are marked *