Answer:
MIPS Code:
.data
newline: .asciiz "\n" #newline variable
.text
MAINLOOP:
li $v0, 5 #syscall to get user interger and store in $v0
syscall
add $a0, $zero, $v0 #moving the user input to $a0 from $v0
beq $a0, 0, EXIT #branching to EXIT when $a0 is 0
li $v0, 1 #syscall to print integer in $a0
syscall
li $v0, 4 #syscall to print newline
la $a0, newline
syscall
j MAINLOOP #jumping to MAINLOOP
EXIT:
Sample Output:
6
6
7
7
3
3
0
Any u just get the pointer and hilight it then u paste
Answer:
The answer is a VOID method.
Explanation:
A void method is one that simply performs a task and then terminates.
Answer:
We will be using Average function of Excel Calculation sheet.
Its Syntax in Calc sheet is : =AVERAGE (number1, [number2], ...)
or you can use =Average and then click on the first cell and drag the whole row till end and close the brackets. It will calculate the average of that row.
Once you have applied average function on first row, you can drag this cell down the column and it will replicate the same function for respective rows.