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:
1. Declare four variables of different data types
2. Prompt the user to input for each variable
3. 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 1, display: "Integer variable is greater than 1"
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!