//Calculate time taken for light to reach Earth.

#include <stdio.h>

#define LIGHTSPEED 186000
#define EARTHDISTANCE 93000000


void main()
{
float time;

time=EARTHDISTANCE/LIGHTSPEED;

printf("The time taken for light to reach earth is %.2f seconds",time);

}