Difference between revisions of "CSC231 Homework 4 Solution"
(New page: =Homework #4 Solution= ==Problem #1== <code><pre> ;;; ; ------------------------------------------------------------------- ;;; ; hw4a.asm ;;; ; Lei Lei ;;; ; ;;; ; Given the following de...) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <onlydft> | ||
=Homework #4 Solution= | =Homework #4 Solution= | ||
==Problem #1== | ==Problem #1== | ||
− | < | + | <source lang="asm"> |
;;; ; ------------------------------------------------------------------- | ;;; ; ------------------------------------------------------------------- | ||
;;; ; hw4a.asm | ;;; ; hw4a.asm | ||
Line 132: | Line 133: | ||
− | </ | + | </source> |
==Problem #2== | ==Problem #2== | ||
− | < | + | <source lang="asm"> |
+ | ;;; ; ------------------------------------------------------------------- | ||
;;; ; hw4b.asm | ;;; ; hw4b.asm | ||
;;; ; Julia Burch | ;;; ; Julia Burch | ||
;;; ; 231a-aa | ;;; ; 231a-aa | ||
;;; ; | ;;; ; | ||
+ | ;;; ; Computes and prints the first 10 rows of Pascal's triangle. | ||
;;; ; OUTPUT: | ;;; ; OUTPUT: | ||
;;; ; 1 0 0 0 0 0 0 0 0 0 | ;;; ; 1 0 0 0 0 0 0 0 0 0 | ||
Line 230: | Line 233: | ||
ret | ret | ||
− | </ | + | </source> |
+ | </onlydft> | ||
+ | |||
+ | [[Category:CSC231]] |