Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

How can I change the perl program involving if-elsif-else conditional to get correct result?

by supriyoch_2008 (Monk)
on Apr 23, 2012 at 07:28 UTC ( [id://966532]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!usr/bin/perl-w
    $a=0.9; $b=0.7; $c=0.5;
    if($a>$b>$c){print"\n$a is largest.\n";$x1=$b/$a;$x2=$c/$a;# Line 3
    ...
    print"\n values are  $x5r, $x6r";
    }
    exit;# Line 13
    
  2. or download this
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    ...
    syntax error at C:\Users\DR-SUPRIYO\Desktop\test.pl line 12, near "}"
    Execution of C:\Users\DR-SUPRIYO\Desktop\test.pl aborted due to compil
    +ation erro
    rs.
    
  3. or download this
    My Expected Result should look like this:
    0.9 is largest.
    values are 0.78, 0.56
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://966532]
Approved by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found