Question: You need to write a C program that does the following: 1 . Declare four variables of different data types 2 . Prompt the user
You need to write a C program that does the following:
Declare four variables of different data types
Prompt the user to input for each variable
Use consitional statements to compare the user input with a predefined value, and display a message based on the comparison. Here's how you can structure the comparisions:
a If the integer variable is greater than display: "Integer variable is greater than
b if the character variable is not equal to a display: "Character variable does not equal the letter a
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
