fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. }
  14. }
Success #stdin #stdout 0.06s 32424KB
stdin
#Q7.
a=int(input("enter no of total classes held:"))
b=int(input("enter no of classes attended:"))
c=(b/a)*100
print("your attendance is{0}%".format(c))
if c>=75:
 print("you can sit in exam")
elif c>=60 and c<75:
 print("solve 5 university papers")
else:
 m=str(input("have you any medical cause for less attendance?enterYorN:"))
if m=="Y":
 print("you can sit in exam by showing medical certificate")
else:
 print("you can't sit in exam")
stdout
Standard output is empty