if ((score >= 1) && (score <= 5) songnumber = 1;
if ((score >= 6) && (score <= 10) songnumber = 2;
if ((score >= 11) && (score <= 15) songnumber = 3;
and so on...
is there a way to do it without using if? like a math equation maybe?
Users browsing this forum: No registered users and 1 guest