#include <stdio.h>
int main()
{
int a, b, c;
char ch;
printf("Dati cele 3 numere si tasta: ");
scanf("%d %d %d %c", &a, &b, &c, &ch);
ch = tolower(ch);
switch (ch)
{
case 'x':
printf("\na + b + c = %d", a + b + c);
break;
case 'y':
printf("\na * b + a * c + b * c = %d", a * b + a * c + b * c);
break;
case 'z':
printf("\na * b * c = %d", a * b * c);
break;
default:
printf("\na + b + c = %d", a + b + c);
break;
}
getch();
return 0;
}