algorithm/기초다지기
512 : 입력 - 자가진단4
m0nd2y
2018. 2. 27. 19:06
512 : 입력 - 자가진단4

다음 두 값을 변수에 저장하고 곱셈 계산식을 출력하는 프로그램을 작성하라.
추의 무게 = 49, 중력의 비율 = 0.2683
다음 두 값을 변수에 저장하고 곱셈 계산식을 출력하는 프로그램을 작성하라.
추의 무게 = 49, 중력의 비율 = 0.2683
![]() 49 * 0.268300 = 13.146700 |
-----해설-----
/************************************************************** Problem: 512 User: ldj6192 Language: C++ Result: Success Time:0 ms Memory:1088 kb ****************************************************************/ #include int main() { int a = 49; double b = 0.2683; printf("%d * %lf = %lf \n", a, b, a * b); return 0; }