Question: Please write in C language and please pay attention to the requirements please and thank you. Write a C program that prints a variant, as

Please write in C language and please pay attention to the requirements please and thank you.
Write a C program that prints a variant, as outlined below, given an input character: - if the input is: ' h ' or ' H ', then the output is two smiley faces. Printing new lines in between each face. - if the input is: ' s ' or ' S ', then the output is two sad faces. Printing new lines in between each face. Requirements: - Writing your own function called smile that accepts no parameters and returns nothing. When the input is: ' h ' or ' H ', your program should call the smile function two times, printing new lines in between each call, to produce the above output. - Writing your own function called cry that accepts no parameters and returns nothing. When the input is: ' s ' or ' S ', your program should call the cry function two times, printing new lines in between each call, to produce the above output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
