Classes and Objects in Ruby

Example #1
  1. span style="color:#996600;">"Enter Numer:""Enter name:""Your Number is #{@sno}""Your Name is #{@sname}""Distinction""First""Second""Student Details""----------------""Total is #{@total}""Average is #{@average}""Result : PASS""Class : #{@cls}""----------------""Result : RE-APPEAR""----------------"
Sample Ouput :-
  1. Enter Numer:
  2. 15
  3. Enter name:
  4. raju
  5. Student Details
  6. ----------------
  7. Your Number is 15
  8. Your Name is raju
  9. Total is 207
  10. Average is 69
  11. Result : RE-APPEAR
  12. ----------------
  13. Enter Numer:
  14. 75
  15. Enter name:
  16. Memo
  17. Student Details
  18. ----------------
  19. Your Number is 75
  20. Your Name is Memo
  21. Total is 194
  22. Average is 64
  23. Result : PASS
  24. Class : First
  25. ----------------