The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-02-2009
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,400
check your condition how can grade work here(logic is wrong)
if average is 40 then it satisfies all the condition
hmmm so make it as
if(average<50) grade=E if(average<60 && average>50) grade=D .. . ..
-->
Code:
if(average<50)
grade=E
if(average<60 && average>50)
grade=D
..
.
..