Guest User

Untitled

a guest
Feb 15th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. symptom(shingles,headache).
  2.  
  3. symptom(shingles,fever).
  4.  
  5. symptom(shingles,malaise).
  6.  
  7. symptom(shingles,headache).
  8.  
  9. symptom(shingles,itching).
  10.  
  11. symptom(shingles,hyperesthesia).
  12.  
  13. symptom(shingles,paresthesia).
  14.  
  15. test(shingles,blood).
  16.  
  17. test(shingles,pcr).
  18.  
  19. locale(shingles,all).
  20.  
  21. treatment(shingles,calamine).
  22.  
  23. treatment(shingles,aciclovir).
  24.  
  25. treatment(shingles,valaciclovir).
  26.  
  27. treatment(shingles,famciclovir).
  28.  
  29. treatment(shingles,corticosteroids).
  30.  
  31. getSymptoms(Symptoms) :-
  32. write('Please enter symptoms now, enter "Done" when finished: ' ),
  33. read_string(user, "n", "r", _, Response),
  34. (
  35. Response == "Done"
  36. ->
  37. Symptoms = []
  38. ;
  39. getSymptoms(Symptoms0),
  40. Symptoms = [Response|Symptoms0]
  41. ).
Add Comment
Please, Sign In to add comment