코딩/Language Coder
506 : 출력 - 자가진단6
pikapika
2018. 4. 14. 01:19
다음과 같이 출력되는 프로그램을 작성하라.
![]() My height 170 My weight 68.600000 |
[코드]
#include <stdio.h>
int main() {
int hei = 170;
double wei = 68.6;
double wei = 68.6;
printf("My height \n");
printf("%d \n", hei);
printf("My weight \n");
printf("%f \n", wei);
printf("%d \n", hei);
printf("My weight \n");
printf("%f \n", wei);
return 0;
}
}