728x90
#include <stdio.h>
int main(void)
{
//&& || 연산법
int a = 10;
int b = 10;
int c = 12;
int d = 12;
if (a == b && c == d)
{
printf("a와 b는 같고 c와 d도 같습니다\n");
}
else
{
printf(" 값이 서로 다릅니다.\n");
}
}
728x90
'개발자 모드 > C언어' 카테고리의 다른 글
C언어 게임 아빠는 대머리 ... (0) | 2021.09.15 |
---|---|
C언어 함수문의 활용 기초 (0) | 2021.09.15 |
C언어 for - if문 (0) | 2021.09.15 |
C언어 for - if - break 문 (0) | 2021.09.15 |
C언어 if - else if - else (0) | 2021.09.15 |