I am trying to make my code more beautiful, but I am not sure how to fix my problem.
Protein: Donations:0 Requests: 0
Dairy: Donations:0 Requests: 0
Grains: Donations:0 Requests: 0
Vegetables: Donations:0 Requests: 0
Fruits: Donations:0 Requests: 0
Here is the code I have for the print statement:
printf("%s:\tDonations:%d Requests: %d\n", TYPES[i], status[0][i], status[1][i]);
I would like it to look like this:
Protein: Donations:0 Requests: 0
Dairy: Donations:0 Requests: 0
Grains: Donations:0 Requests: 0
Vegetables: Donations:0 Requests: 0
Fruits: Donations:0 Requests: 0
Any ideas?
source
share