Code:
int main()
{
int bet,total;
printf("Enter the amount to bet:\n");
scanf("%d", bet);
total = total - bet;
printf("%d", &total);
const char fruit1[20][8] = { "C","C","C","C","C","L","L","L","L","P","P","P","P","P","P","7","M","M","="};
const char fruit2[20][8] = { "Cherry","Cherry","Cherry","Cherry","Cherry","Cherry","Cherry","Lemon","Plum","7","7","7","7","7","7","7","7","7","7","Melon","Bars"};
const char fruit3[20][8] = { "Cherry","Cherry","Cherry","Lemon","Lemon","Lemon","Lemon","Lemon","Lemon","Lemon","Lemon","Plum","Plum","Plum","Plum","7","Melon","Bars"};
srand(time(0));
int wheel1 = rand() % 12;
int wheel2 = rand() % 12;
int wheel3 = rand() % 12;
printf("%s\n%s\n%s\n\n", fruit1[wheel1], fruit2[wheel2], fruit3[wheel3]);
if ((wheel1 == wheel2 || wheel3) || (wheel2 == wheel3 || wheel1))
printf("Win");
};
I intend on abbreviating the rest of the symbols in that grotesquely huge printf functions. Is there any way to abbreviate those somehow?