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.1s 54620KB
stdin
print("請選擇您的組別")
print("1. A 組")
print("2. B 組")
print("3. C 組")

choice = input("請輸入選項(1 / 2 / 3):")

if choice == "1":
    print("您選擇的是 A 組")
elif choice == "2":
    print("您選擇的是 B 組")
elif choice == "3":
    print("您選擇的是 C 組")
else:
    print("輸入錯誤")

print("系統狀態:目前有 0 筆掛單等待中")
stdout
Standard output is empty