summaryrefslogtreecommitdiff
path: root/prolog/problems/license_plates/genexp_2/en.py
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/license_plates/genexp_2/en.py')
-rw-r--r--prolog/problems/license_plates/genexp_2/en.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/prolog/problems/license_plates/genexp_2/en.py b/prolog/problems/license_plates/genexp_2/en.py
index 2238f4d..9b25f12 100644
--- a/prolog/problems/license_plates/genexp_2/en.py
+++ b/prolog/problems/license_plates/genexp_2/en.py
@@ -6,14 +6,14 @@ slug = 'generate an arithmetic expression from a list'
description = '''\
<p><code>genexp(L, E)</code>: the expression <code>E</code> is obtained from the list <code>L</code> by inserting arithmetic operators between list elements. Your code should generate all valid solutions.</p>
<pre>
- ?- genexp([1,2,3], L).
- L = 1+2+3 ;
- L = 1+2-3 ;
- L = (1+2)*3 ;
- L = (1+2)/3 ;
- L = 1-2+3 ;
- L = 1-2-3 ;
- ...
+?- genexp([1,2,3], L).
+ L = 1+2+3 ;
+ L = 1+2-3 ;
+ L = (1+2)*3 ;
+ L = (1+2)/3 ;
+ L = 1-2+3 ;
+ L = 1-2-3 ;
+ …
</pre>'''
hint = {}