please can anyone help me with this homework i do not know what to do. thank you
Write a program that will count from any user-inputted number to 0. For example, if the user inputs 5, the program should output: 5, 4, 3, 2, 1, 0.
Do you actually need the comma character also?
If not, check this out:
It is fixed to take only a single digit number.
mov SI, 005Dh ; location of command-line parameter
mov cx, [SI] ; put value in CX
cmp cl, 20h ; Is the value empty?
je quit ; if so, quit
mov ch, 24h ; Put a dollar-sign (terminator) (reversed)
mov [si], cx ; Move that value and dollar sign to command-line
mov ah, 09h ; Prepare to print
mov dx, 005dh ; ...from command-line memory
int 21h ; Print it.
dec cl ; decrement value
cmp cl, 2Fh ; Is it still above zero (hex 30)?
jne print_it ; if not, print it.
int 20h ; drop to DOS (the easy way)
I couldn't find my book, so I did this from memory.
Edited 7 Years Ago by thines01: omission and clarity
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"