Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C Compiler.
- Code, Compile, Run and Debug C program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <stdio.h>
- int main()
- {
- struct karte{
- char b1, b2;
- char v1, v2;
- int pozicija;
- }i1,i2,i3;
- scanf("%d %c %c %c %c", &i1.pozicija, &i1.b1, &i1.b2, &i1.v1, &i1.v2);
- scanf("%d %c %c %c %c", &i2.pozicija, &i2.b1, &i2.b2, &i2.v1, &i2.v2);
- scanf("%d %c %c %c %c", &i3.pozicija, &i3.b1, &i3.b2, &i3.v1, &i3.v2);
- if((i1.b1 && i1.b2) != (i1.v1 && i1.v2)){
- printf("Igrac na poziciji %d ima mogucnost: nista", i1.pozicija);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement