Prepared By
Ahmed Al Marouf
Lecturer, Dept. of CSE, DIU
CSE 232: Coding Assignment #05
Task 1:
Write a sequence of assembly instructions to do input 10 single-digit numbers
from user. Display them on the next line. Display the summation on the next
line.
Sample:
Enter 10 single-digit numbers: 1234567891
Numbers are: 1, 2, 3, 4, 5, 6, 7,8, 9, 1
Summation: 46
Hint: Use Stack to solve the problem.
Task 2:
Write an assembly program to read a single-digit number not more than 5.
Output the factorial of that number on the next line.
Sample:
Enter a number: 7 Enter a number: 3
Invalid Number Factorial: 6
Submission Procedure:
Write/Edit the codes given with the assignment. Make two separate files
task1_yourID.asm and task2_youID.asm
Note: You must add your Name and ID inside the .asm files in comment
format.
Submit both the files under the Coding Assignment created in Google
Classroom, within the deadline. Check deadline in Google Assignment.