/*#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*//*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d+%d=%d\n",a, b, a+b);
printf("%d-%d=%d\n",a,b,a-b);
printf("%d*%d=%d\n",a,b,a*b);
printf("%d/%d=%d",a,b,a/b);
return 0:
}
*/
/*
#include <stdio.h>
int main()
{
float a,b;
scanf("%f %f",&a,&b);
printf("%.2f",a*b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a%b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a>=b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a==b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a!=b);
return 0;
}
*/
/*
A B | and(&&) | or( || ) | not(!)
----------------------------------------
0 0 | 0 1 0 1
0 1 | 0 1 1 0
1 0 | 0 1 1 0
1 1 | 1 0 1 0
------------------------------------------
(A && B),
(A || B),
!(A && B)
!A {0 0 1 1} => {1 1 0 0}
!B {0 1 0 1} => {1 0 1 0}
* 정답 소스를 그대로 배끼면 안됨
* 왠지, 비교연산자를 쓰면 될것 같지만,
> 쓰면 안됨.
*//*
#include<stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d", a&&b);
}
*//*
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
printf("%d",!a);
return 0;
}
*/
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d", a&&b);
return 0;
}
top of page

실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
2023-02-16
2023-02-16
댓글 0개
좋아요
댓글(0)
더 이상 게시물에 대한 댓글 기능이 지원되지 않습니다. 자세한 사항은 사이트 소유자에게 문의하세요.
bottom of page


