Question: Task 3: Here is a program that computes the number of miles that light will travel in a specified number of days. Try to compile

 Task 3: Here is a program that computes the number of

Task 3: Here is a program that computes the number of miles that light will travel in a specified number of days. Try to compile and run the following C program. If it does not work, make necessary corrections so that it compiles, runs and gives correct output. Lightspeed = 186000 days = 1000; l/specify number of days here seconds = Days*24*60*60; /*convert to seconds/ distance = lightspeed * Second; //compute distance printf("In " + days + " days light will travel about); printf(Distance + "miles.")

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!