Input marks If marks >= 60 Then "passed" Else Print "failed" End If End Case Statement Input Marks Case Marks of Case =100 Print Score” “Perfect Case > 89 Print = A” “Grade Case > 79 Print = B” “Grade Case > 69 Print = C” “Grade Case > 59 Print = D” “Grade Otherwise Print = F” “Grade End Case End Or Begin grade CASE grade OF : points = 4 “A” : points = 3 “B” : points = 2 “C” : points = 1 “D” : points = 0 “F” Otherwise : print invalid grade” “
Input marks If marks >= 60 Then "passed" Else Print "failed" End If End Case Statement Input Marks Case Marks of Case =100 Print “Perfect Score” Case > 89 Print “Grade = A” Case > 79 Print “Grade = B” Case > 69 Print “Grade = C” Case > 59 Print “Grade = D” Otherwise Print “Grade = F” End Case End Or Begin grade CASE grade OF “A” : points = 4 “B” : points = 3 “C” : points = 2 “D” : points = 1 “F” : points = 0 Otherwise : print “ invalid grade”