Q
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; }
|
Author:
Slay
Permalink:
http://sean-baek.github.io/2023/04/28/codeup-1054/
License:
Copyright (c) 2021 CC-BY-NC-4.0 LICENSE
Slogan:
Do you believe in DESTINY?