I dunno, there's one floating out there this week and it asks 'can anyone write a program'.
I am guessing you just got started. Have you see a for loop yet? This problem is simple enough that showing you anything is going to show you all of it, so enjoy one freebie, but next time show some work. Use this along with what you were taught in class/book to make a program of it..