sh1k4ku commited on
Commit
1f3202d
·
verified ·
1 Parent(s): 086ef72

Upload assignment2.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. assignment2.html +2 -2
assignment2.html CHANGED
@@ -379,13 +379,13 @@ e = b * c # multiplication
379
  f = d / (e + 1) # division and addition
380
 
381
  if f > 0:
382
- g = f + d - e # operations in conditional branch
383
  if f <= 0:
384
  g = d - e / (c + 1) # different operations without else
385
 
386
  result = g * a + b - c # final operation
387
 
388
- <span class="swap" data-seen="return"></span> result`;
389
  buildChoice(document.getElementById("q5opts"), "q5",
390
  [["a","(a) 2729.72"],["b","(b) 2827.21"],["c","(c) 2882.64"],["d","(d) 2938.08"]]
391
  .map(([v,l])=>({val:v, label:l, body:""})),
 
379
  f = d / (e + 1) # division and addition
380
 
381
  if f &gt; 0:
382
+ g = f + d <span class="swap" data-seen="- "></span>e # operations in conditional branch
383
  if f &lt;= 0:
384
  g = d - e / (c + 1) # different operations without else
385
 
386
  result = g * a + b - c # final operation
387
 
388
+ return result`;
389
  buildChoice(document.getElementById("q5opts"), "q5",
390
  [["a","(a) 2729.72"],["b","(b) 2827.21"],["c","(c) 2882.64"],["d","(d) 2938.08"]]
391
  .map(([v,l])=>({val:v, label:l, body:""})),