Can this be done using a method similar to this one:
As long as the current element of the string the user input via scanf is not \0, add one to the "length" int and then print out the length.
I would be very grateful if anybody could guide me through the least complex way possible as I am a beginner.