Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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