Let’s examine this note by note
The first note is C.
Move up a tone (2 frets) to get the second note – D
Move up a tone from D to get the third note – E
Move up a semi-tone to get the fourth note – F
And then we move up 2 frets (tone) from F to G
Move up 2 frets (tone) from G to A
Move up 2 frets (tone) from A to B
And 1 fret (semi-tone) from B to C
(We note that the C major scale has no sharp notes but all 7 regular notes – CDEFGAB)
You can visualize the note intervals like this: