Well step 1 is write the "hello world" program to make sure you can edit code, compile it and run it.
Then move on to actually solving the problem. My first suggestion is read in a number, then print it out again unchanged.
Well step 1 is write the "hello world" program to make sure you can edit code, compile it and run it.
Then move on to actually solving the problem. My first suggestion is read in a number, then print it out again unchanged.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.