for (int i=2; i<=upperBound; i++) {
if (num % i ==0)
printf(""%d" is a prime number.");
}
I understand that I should know this stuff but I'm just starting to learn C and it's a bit confusing. I know that the condition is supposed to be in the middle, that's why I'm not sure how to include the upperbound variable.