Major Scales An excellent explanation: The Major Scale  (musictheory.net) Theory Things   William Wieland
To write a major scale, write the major key signature
followed by 8 successive pitches, beginning and
ending with the name of the key. (The C major
scale begins and ends with C.)

The pattern of whole steps (W) and half steps (½) is
12345678
WW½WWW½
C major scale