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:

  1. Prints out your name and a hobby that you enjoy.
  2. 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

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

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 Databases Questions!