Share Pastebin
Guest
Public paste!

Lucas Hermann Negri

By: a guest | Sep 19th, 2008 | Syntax: C | Size: 0.25 KB | Hits: 144 | Expires: Never
Copy text to clipboard
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.         char nome1[20], nome2[20];
  6.         int gol1, gol2;
  7.  
  8.         while(scanf("%s vs %s : %dx%d", nome1, nome2, &gol1, &gol2) != EOF)
  9.         {
  10.                 printf("%s: %d\t", nome1, gol1);
  11.                 printf("%s: %d\n", nome2, gol2);
  12.         }
  13.  
  14.         return 0;
  15. }