Q

codeup 1054

codeup 1054번 문제

codeup 1054번 문제


C code

if - else

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int main(void)
{
int a,b,c;

scanf("%d %d",&a, &b);

if(a == 1 && b == 1)
printf("1");
else
printf("0");

return 0;
}

AND

1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int main(void)
{
int a,b,c;

scanf("%d %d",&a, &b);

printf("%d", a&&b);

return 0;
}