[Solved] C Program Switch and If statement

You’re missing crucial break statements in your switch, e.g. switch(rank) { case 14: { if(suite == ‘H’) printf(“Your card is the Ace of Hearts!”); else if(suite == ‘C’) printf(“Your card is the Ace of Clubs!”); else if(suite == ‘D’) printf(“Your card is the Ace of Diamonds!”); else printf(“Your card is the Ace of Spades!”); } … Read more