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 |