1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { char c; int age, id, outputs; double stars; printf("³ªÀ̸¦ ÀÔ·ÂÇϽÿÀ: "); scanf("%d", &age); printf("³ªÀÌ: %d\n", age); printf("Á÷¿ø ¾ÆÀ̵𸦠ÀÔ·ÂÇϽÿÀ: "); scanf("%d", &id); printf("¾ÆÀ̵ð: %d\n", id); printf("»ý»ê·®À» ÀÔ·ÂÇϽÿÀ: "); scanf("%d", &outputs); printf("»ý»ê·®: %d\n", outputs); printf("º°ÀÇ °³¼ö¸¦ ÀÔ·ÂÇϽÿÀ: "); scanf("%lf", &stars); printf("º°ÀÇ °³¼ö: %e \n", stars); getchar(); printf("±ÛÀÚ¸¦ ÀÔ·ÂÇϽÿÀ: "); scanf("%c", &c); printf("±ÛÀÚ: %c\n", c); } | cs |