The program listed below throws a segmentation fault for 3 as entered number, I am unsure whether my use of [num] is correct. I assumed mov [num],eax moves the
mov [num],eax