Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4.  
  5. void loop (int numero_batalhas, int i)
  6. {
  7.     if (numero_batalhas == i)
  8.     {
  9.         return;
  10.     }
  11.    
  12.     else
  13.     {
  14.         int vida_clodes, vida_bezaliel, dano_clodes, dano_bezaliel;
  15.         scanf("%d%d%d%d", &vida_clodes, &vida_bezaliel, &dano_clodes, &dano_bezaliel);
  16.  
  17.         if (vida_clodes == 0)
  18.         {
  19.             printf("Bezaliel\n");
  20.         }
  21.  
  22.         else if ()
  23.         {
  24.             printf("Clodes\n");
  25.         }
  26.     }
  27.     return loop (numero_batalhas, i + 1);
  28. }
  29.  
  30. int main()
  31. {
  32.     int numero_batalhas, i;
  33.     scanf("%d", &numero_batalhas);
  34.     loop (numero_batalhas, 0);
  35.     return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement