1)Write a C program that prompts the user to input a username.
Use a while loop to keep asking for
a username until a valid one is entered (e.g., at least 8 characters long).
2) Write a C program that prompts the user to input a series of numbers until they input a duplicate
number. Use a while loop to check for duplicates.
3) Write a C program that generates a random number between 1 and 20 and asks the user to guess
it. Use a while loop to give the user multiple chances until they guess the correct number.