#include <stdio.h>
#include <stdlib.h>
int main()
{
int x,y,z;
char a[20],b[20];
printf("Enter first name:");
scanf("%s",a);
printf("Enter first score:");
scanf("%d",&x);
printf("Enter second name:");
scanf("%s",b);
printf("Enter second score:");
scanf("%d",&y);
switch (x,y) {
case 1: printf("The winner is %s with %d points",a,z = (x-y)*(10/10));break;
case 2: printf("The winner is %s with %d points",b,z = (y-x)*(10/10));break;
return 0;
switch (x-y > 0)
{
case true :printf("The winner is %s with %d points",a, (x-y));break;
case false : printf("The winner is %s with %d points",b, (y-x));break;
}