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 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
Get step-by-step solutions from verified subject matter experts
