我正在创建一个计算从1到100的7的倍数的程序。然而,我的代码打印一个大于100,105的倍数。我不知道该怎么解决这个问题。我尝试过执行num <= 100,num < 100,num < 99,num = 0,但都不起作用。谢谢!代码: int main() //variables
printf("Multiples of Seven from 1 to <e
我试图完成一个简单的任务--1到100之间的数字之和,eax将保持和。例如:1 + 2 + 3 + .. + 100 XOR eax, eax ;; Set eax to 0 ADD eax, ecx ;; We add the ecx register value to eax, ecx decreses by 1 ever