answersLogoWhite

0

Average of 5 numbers in assembly?

Updated: 12/11/2022
User Avatar

Kesema

Lvl 1
15y ago

Best Answer

.model small

.stack 100

.data

line1 db 03,12,15,14,01

avg db ?

.code

mov ax,@data

mov ds,ax

lea si,line1

mov cx,0005h

mov al,00+1 l1:add al,[si]

inc si

loop l1 mov ah,00h

mov bh,05h

div bh

mov [si],al

mov ah,4ch

int 21h

end

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Average of 5 numbers in assembly?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the sum of 5 numbers whose average is 5 more than 5?

Sum of 5 numbers with an average of 10 = 50


The average of six numbers is 4 If the average of two of those numbers is 2 what is the average of the other four numbers?

5


If The average of 5 numbers is 6 and the average of 3 numbers is 4 find out the average of remaining two numbers?

2


How do you calculate the average of unknown number of tests?

If the average of 5 numbers is 23 and the range is 10, what are the 5 numbers?


What is the average of 2 5 and 8?

5 + 8 + 2 = 15. 15 / 3 = 5 All you have to do is add the numbers, then divide the answer by how many numbers you added.


What is the average of odd numbers from 5 to 12?

Including 5..... average=7.75


What is average of 5 numbers?

Their sum divided by 5.


What are three prime numbers where the average is a prime number?

3, 5, and 7 are three prime numbers whose average is 5.


How do you calculate the average of 5 numbers?

1)start 2)input 5 numbers m,a,i,r,a 3)average=sum/5 4)printsum 5)stop


Why is the average if a number?

The average of a set of numbers is the sum of all the numbers, divided the amount of numbers in the sequence. For example, the average of 12, 14, 13, 15, and 20, would be the sum of the numbers, 74, divided by the amount of numbers in the sequence, 5. So the average is 74/5, which is 14.8.


What are three prime numbers where the average is also a prime number?

3, 5, and 7 are three prime numbers whose average is 5.


How to find the mean in maths?

Mean is the same as average. For example, to get the average of 5 numbers, you add them all together, then divide by 5 (because there are 5 numbers).