TO this example guys the program was created using long data type instead of int.
compute
the distance light travels in 365 days. to get the exact amount of travel we
need to follow this formal. lightspeed travel at 18600 miles per second in 365 days. to get the distance we need to convert the value of days, time, minutes,
seconds into seconds. to get the distance light travel we need to multiply
lightspeed into seconds.
No comments:
Post a Comment