Question: You are to create a program that does the following: Prints out your name and a hobby that you enjoy. Creates the following variables and
You are to create a program that does the following:
- Prints out your name and a hobby that you enjoy.
- Creates the following variables and sets them to these initial values:
- X, an int, that is equal to 10
- Y, an int, that is equal to 3
-
- Z, a double that is equal to X / Y
- Make sure you use typecasting so no data is lost
- Z, a double that is equal to X / Y
NOTE: You do not have to output the values within the variables X, Y or Z as we have not learned that yet. You may use breakpoints to check the values within the variables.
Please help me I am coding in C.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
