목록2022/04/05 (1)
Silver Library (Archived)
How I define - for loop
How to improve this code more efficiently? In other words, how to be accepted in interview? int main(void) { int scores[3]; scores[0] = get_int("Score: "); scores[1] = get_int("Score: "); scores[2] = get_int("Score: "); printf("Average: %f\n", (scores[0] + scores[1] + scores[2] / 3.0); Obviously, get_int can be replaced to something else. To reduce that repetitive one. In this case, the expert s..
Personal DB
2022. 4. 5. 12:00