This is my code for a digital clock. It only refreshes when i type in a letter. Can somebody please help me find a way to write it so it refreshes automatically?
I see you edited your post, but you forgot the closing } of your while loop. Also, you are requesting input from the user every time, so it cannot "refresh automatically".