Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write in C language and please notice the requirements thank you so much! Write a C program that prints a variant, as outlined below,
Please write in C language and please notice the requirements thank you so much!
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 outputStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started