It's for a school assignment. I have no clue what's going on, but it prints "1077936128" for friends_helped and "0" for coins_earned, despite the fact that the vars being received are 1 and 27, respectively.
Code:
void display_round_statistics(int round, double coins_earned, int friends_helped){
printf("\nRound %d Totals:\n\nFarm Coins earned: %d\n%d Friend",round, coins_earned, friends_helped);
if(friends_helped!=1) printf("s");
printf(" helped\n");
}
<I'm new here, so sorry if I've violated any protocols>