1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int x, y, z; float avg; printf("Á¤¼ö¸¦ ÀÔ·ÂÇϽÿÀ :"); scanf("%d",&x); printf("Á¤¼ö¸¦ ÀÔ·ÂÇϽÿÀ :"); scanf("%d",&y); printf("Á¤¼ö¸¦ ÀÔ·ÂÇϽÿÀ :"); scanf("%d",&z); avg = (x + y + z) / 3; printf("Æò±ÕÀº %fÀÔ´Ï´Ù.\n",avg); return 0; } | cs |