Question: write a c program with loops Laboratory Tasks Task 1: Using a do-while loop, write a C program to check that the user has typed


write a c program with loops
Laboratory Tasks Task 1: Using a do-while loop, write a C program to check that the user has typed a character digit. The program must not stop until the user types a character digit. Note: . Use " %c" as the format string for the scanf to skip white space. . The behavior of your program must be similar to the sample program runs given below Sample runs Enter a digit [0 9]: 4 You typed the digit 4 Enter a digit [O 9]: r Sorry you typed the lowercase letter r. Try again Enter a digit o -9]: H Sorry you typed the uppercase letter H. Try again Enter a digit tO-9]: 8 Sorry you typed the special character e. Try again Enter a digit to -9]: 8 You typed the digit 8 I (UNITED STATES)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
