Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

cglab7@cglab7-OptiPlex-9820:~$ cd 211105036

cglab7@cglab7-OptiPlex-9020:~/211105036$ nasm -f elf 6a.asm


cgtab7@cglab7-OptiPlex-9020:-/211105036$ ld -m elf_i386 -s -o 6a 6a.o
cglab7@cglab7-Optiplex-9020:-211105036$ ./6a
Enter the number of terms: 7
The series is 0 1 1 2 3 5 8

cglab7@cglab7-OptiPlex-9820:~$ cd 211105036
cglab7@cglab7-OptiPlex-9020:~/211105036$ nasm -f elf 6b.asm
cgtab7@cglab7-OptiPlex-9020:-/211105036$ ld -m elf_i386 -s -o 6b 6b.o
cglab7@cglab7-Optiplex-9020:-211105036$ ./6b
Enter the number: 3
The factorial is 6

cglab7@cglab7-OptiPlex-9820:~$ cd 211105036
cglab7@cglab7-OptiPlex-9020:~/211105036$ nasm -f elf 6c.asm
cgtab7@cglab7-OptiPlex-9020:-/211105036$ ld -m elf_i386 -s -o 6c 6c.o
cglab7@cglab7-Optiplex-9020:-211105036$ ./6c
Enter the number 1:
3
Enter the number 2:
2
The sum of number 1 & 2:
5
The difference of number 1 and 2:
1
The product of number 1 & 2:
6
The division of number 1 & 2:
1
The remainder is:
1

You might also like