SHARE
TWEET

Untitled

a guest Jan 24th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /******************************************************************************
  2.  
  3.                             Online C Compiler.
  4.                 Code, Compile, Run and Debug C program online.
  5. Write your code in this editor and press "Run" button to compile and execute it.
  6.  
  7. *******************************************************************************/
  8.  
  9. #include <stdio.h>
  10.  
  11. int main()
  12. {
  13.     struct karte{
  14.         char b1, b2;
  15.         char v1, v2;
  16.         int pozicija;
  17.        
  18.        
  19.     }i1,i2,i3;
  20.    
  21.    
  22.     scanf("%d %c %c %c %c", &i1.pozicija, &i1.b1, &i1.b2, &i1.v1, &i1.v2);
  23.     scanf("%d %c %c %c %c", &i2.pozicija, &i2.b1, &i2.b2, &i2.v1, &i2.v2);
  24.     scanf("%d %c %c %c %c", &i3.pozicija, &i3.b1, &i3.b2, &i3.v1, &i3.v2);
  25.    
  26.    
  27.     if((i1.b1 && i1.b2) != (i1.v1 && i1.v2)){
  28.         printf("Igrac na poziciji %d ima mogucnost: nista", i1.pozicija);
  29.     }
  30.    
  31.     return 0;
  32. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top