Different output

typed the same code as learned from the video but having different output on my compiler.