PART A
Write c program.Please dount use fget
Write the statements to read a line of characters and create anew string by eliminating commas and blanks in theinput string. Display the new string as given below:
Sample Run:
Enter a string: today, tomorrow, next day, will be cold.
Next string: todaytomorrownextdaywillbecold.
PART B
Please dont use fget.
Write a complete C program that removes extra spaces betweenwords. Your main function should read the string entered by theuser (you shall use gets function) and passes it to a functioncalled clean. The function called clean should create a new stringconsisting of characters with no extra spaces between words. Themain function
OR
OR