Though the question has been answered, 'where to start' is important.
Before you start coding, always think out what you want the program to do on paper.
For this particular problem, what you need to think about is:
If I can find the largest number, how can I use that information or process to find the second largest number?
Assuming you compare the current maximum to another number, you then update the variable with the largest number.
But that means that the number just discarded is (by definition) the second largest number yet encountered.
But you're not done yet. As Rashakil Fol pointed out, there are additional cases, where the new number may be smaller than the maxiumum but smaller than the second, so you have to account for that.
And, what if you have equal numbers for your maximum or second largest?