[codeup] 1128 : n * 123456789 12345678#include int main(){ int i; scanf("%d", &i); printf("%lld", i * 123456789LL);}Colored by Color Scriptercs Study/CodeUp 2020.05.03
[codeup] 1127 : 성적 계산 12345678910111213#include int main(){ int a, b, c; float one, two,three,i; scanf("%f %d", &one, &a); scanf("%f %d", &two, &b); scanf("%f %d", &three, &c); i = (a * one) + (b * two) + (c * three); printf("%.1f", i);}Colored by Color Scriptercs Study/CodeUp 2020.05.03
[codeup] 1126 : 정수 계산기 123456789101112#include int main() { int a, b; scanf("%d %d", &a, &b); printf("%d + %d = %d\n", a, b, a + b); printf("%d - %d = %d\n", a, b, a - b); printf("%d * %d = %d\n", a, b, a * b); printf("%d / %d = %d\n", a, b, a / b); printf("%d %% %d = %d\n", a, b, a % b); }Colored by Color Scriptercs Study/CodeUp 2020.05.03
[codeup] 1125 : 8진수 16진수 변환 12345678#include int main(){ int a; scanf("%d", &a); printf("%o %X", a, a);}cs Study/CodeUp 2020.05.03
[codeup] 1124 : 분자량 구하기 1 123456789#include int main(){ int b, c, d, e; scanf("%C%d%C%d", &b, &c, &d, &e); printf("%d", c * 12 + e * 1);}Colored by Color Scriptercs Study/CodeUp 2020.05.03
[codeup] 1123 : 섭씨 온도를 화씨 온도로 변환 123456789#include int main() { float a,i,b; scanf("%f", &a); b = 1.8; i = b * a + 32; printf("%.3f", i);}cs Study/CodeUp 2020.05.03
[codeup] 1122 : 초를 분/초로 변환 1234567891011 #include int main() { int a, b,c; scanf("%d", &a); b = a / 60; c = a % 60; printf("%d %d", b,c); }cs Study/CodeUp 2020.05.03
[codeup] 1121 : 나머지 구하기 123456789#include int main() { int a, b; scanf("%d %d", &a, &b); int(i) = a % b; printf("%d", i);} cs Study/CodeUp 2020.05.03
[codeup] 1120 : 세 수의 평균 123456789#include int main() { float a, b, c; scanf("%f %f %f", &a, &b, &c); float(i) = (a+b+c) / 3; printf("%.2f", i);} Colored by Color Scriptercs Study/CodeUp 2020.05.01
[codeup] 1119 : 일을 시간으로 변환 123456789#include int main() { int a; scanf("%d", &a); printf("%d", a * 24); } cs Study/CodeUp 2020.05.01