fork(1) download
  1. ; your; Define the template
  2. (deftemplate Assignment
  3. (slot Assig_No)
  4. (slot Opening_date)
  5. (slot Closing_date)
  6. (slot Marks))
  7. ; Add three facts
  8. (deffacts assignment-facts
  9. (Assignment (Assig_No 1) (Opening_date "2025-06-01") (Closing_date "2025-06-10") (Marks 10))
  10. (Assignment (Assig_No 2) (Opening_date "2025-06-11") (Closing_date "2025-06-20") (Marks 15))
  11. (Assignment (Assig_No 3) (Opening_date "2025-06-21") (Closing_date "2025-06-30") (Marks 20)))
  12. ; Run to see the facts
  13. (reset)
  14. code goes here
  15.  
  16. (exit)
  17. ; empty line at the end
Success #stdin #stdout 0.01s 5400KB
stdin
Standard input is empty
stdout
Standard output is empty