| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define and && #define or || int main(void) { int credits; double gpa; printf("Áö±Ý±îÁö ȹµæÇÑ ÇÐÁ¡¼ö¸¦ ÀÔ·ÂÇϽÿÀ: "); scanf("%d", &credits); printf("Áö±Ý±îÁö ȹµæÇÑ ÇÐÁ¡Æò±ÕÀ» ÀÔ·ÂÇϽÿÀ: "); scanf("%lf", &gpa); if (credits >= 120 and gpa >= 2.0) printf("Á¹¾÷ °¡´ÉÇÕ´Ï´Ù. \n"); else printf("Á» ´õ ´Ù³à¾ß ÇÕ´Ï´Ù. \n"); return 0; } | cs |


https://itsys.hansung.ac.kr/cgi-bin/onlineTest/viewCcoding/onlineCcoding.cgi?source=src/chap14/macro_lab1.c
CÇÁ·Î±×·¡¹Ö(ÇÁ·Î±×·¡¹Ö¾ð¾î) ½Ç½À°Ô½ÃÆÇ