C언어 콘서트 chpater3
- 최초 등록일
- 2020.09.10
- 최종 저작일
- 2019.09
- 12페이지/
MS 워드
- 가격 1,000원

소개글
"C언어 콘서트 chpater3"에 대한 내용입니다.
목차
1. Lab01
2. Lab02
3. Lab03
4. 연습문제05
5. 연습문제07
6. 연습문제09
7. 연습문제10
8. 프로그래밍01
9. 프로그래밍02
10. 프로그래밍03
11. 프로그래밍04
12. 프로그래밍05
본문내용
Lab01.
#include
#include
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/s \n", distance);
printf("도달 시간은 %f분\n", time);
system("pause");
return 0;
}
Lab02
#include
#include
int main(void)
{
double celcius, fahrenheit;
printf("화씨온도=");
scanf("%lf", &fahrenheit);
celcius = (fahrenheit - 32.0) * 5.0 / 9.0;
printf("섭씨온도=%lf \n", celcius);
system("pause");
return 0;
참고 자료
없음