|
|
back to boardPlease help) #include <stdio.h> int main() { char a[3],b[3]; gets(a); gets(b); int x; if (a[3]=='0'||a[3]=='2'||a[3]=='4'||a[3]=='6'||a[3]=='8') x=1; if (b[3]=='1'||b[3]=='3'||b[3]=='5'||b[3]=='7'||b[3]=='9') x=1; if(x==1) printf("yes"); else printf("no"); } Re: Please help) Posted by Pearl 2 Oct 2018 10:10 The two codes are just two numbers, think about it this way. If I write more, the solution will be obvious and you will get nothing. |
|
|