#include <stdio.h>

int main(void)
{
 double light_speed = 300000;
 double distance = 149600000;

 double time;

 time = distance / light_speed;

time = time/60.0;

 printf("빛의 속도는 %fkm/s \n", light_speed);
 printf("태양과 지구와의 거리 %fkm \n", distance);
 printf("도달 시간은 %f분 \n", time);
 return 0;
}

 

에서 결과 값이 8.311111분 로 나오는대 이 결과값을

 

결과 값 8분 20초 라고 나오도로 하려함