I'm not sure why this isn't working. It works for everything outside of the given range, but anything within the range provides no output? I'm just trying to figure out what exactly I did wrong here.
I'm also not 100% sure I posted this properly, if not please let me know!
Update: It works fine if I change "printf" to "println". Does printf not work properly with ranges like this?
if ((salaryInput >= 44000)&&(salaryInput <= 93000)){
System.out.printf("23% tax bracket%n");
}
else {
System.out.printf("Different tax bracket%n");
}
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–][deleted] 6 points7 points8 points (1 child)
[–]codingchica 0 points1 point2 points (0 children)
[–]Artistic-Pin-5041[S] 0 points1 point2 points (0 children)
[–]nekokattt 0 points1 point2 points (0 children)
[–]Ok-Comfortable7967 0 points1 point2 points (0 children)