Re: Factorial of a number.

2015-09-21 Thread Shlomi Fish
On Mon, 21 Sep 2015 16:31:03 +0530 Uday Vernekar wrote: > Thanks Shlomi for your Valuable comments. > You're welcome, Uday. Regards, — Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Chuck Norris/etc. Fact

Re: Factorial of a number.

2015-09-21 Thread Uday Vernekar
> > > I wrote a simple Perl code to find the factorial of a number. > > Need feed back on the same.please correct me if i have done anything > wrong > > > > #!/usr/bin/perl > > use warnings; > > use strict; > > It's good that you used string and

Re: Factorial of a number.

2015-09-21 Thread Shlomi Fish
Hi Uday, please reply to the list. I'm going to comment on your code. On Mon, 21 Sep 2015 15:06:49 +0530 Uday Vernekar wrote: > Hi all, > > I wrote a simple Perl code to find the factorial of a number. > Need feed back on the same.please correct me if i have done anything

Factorial of a number.

2015-09-21 Thread Uday Vernekar
Hi all, I wrote a simple Perl code to find the factorial of a number. Need feed back on the same.please correct me if i have done anything wrong #!/usr/bin/perl use warnings; use strict; my $fact=1; print("Enter Number:"); my $num=; if($num==0) { print("factorial of $num=$fact\n&