Question: Write a C program in Code::Blocks that: -Prompts a user to enter a string -Reads an input string up to 50 characters long from a
Write a C program in Code::Blocks that:
-Prompts a user to enter a string
-Reads an input string up to 50 characters long from a user entering input on the terminal
-Prints out to the terminal You entered: followed by the full string the user entered.
-On the next line, print out Numbers: followed by all the numbers that were entered by the user in consecutive order. Do not print out any spaces, letters, or punctuation.
-On the next line, print out Letters: followed by all the letters that were entered by the user in consecutive order. Do not print out any spaces, numbers, or punctuation.
-On the next line, print out Punctuation: followed by all the punctuation that were entered by the user in consecutive order. Do not print out any spaces, letters, or numbers.
For an input of A.3743saa823sd.!!3?AS2! the output should be:
You entered: A.3743saa823sd.!!3?AS2!
Numbers: 374382332
Letters: AsaasdAS
Punctuation: ..!!?!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
