Created
April 2, 2020 11:54
-
-
Save Seregamil/ba580a1e3879d86aa4f2dbc401d852eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
student('Ivanov', 4). | |
student('Fedorov', 3). | |
student('Vetrov', 4). | |
student('Petrov', 3). | |
student('Popov', 4). | |
student('Sidorov', 5). | |
company('Microsoft', 5). | |
company('Apple', 4). | |
company('IBM', 4). | |
company('Samsung', 4). | |
company('MaximCo', 3). | |
has_stip(Name) :- | |
student(Name, X), | |
X > 4. | |
can_work_in_company(Name, Company) :- | |
student(Name, X), | |
company(Company, Y), | |
X >= Y. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment