Cool :) I'll make a note of this, and use it in future coding projects!
Type: Posts; User: jo15765
Cool :) I'll make a note of this, and use it in future coding projects!
How would I use that?
I was comparing the wrong 2 variables. Beginner's error. Thank you for the help! (As well as the future tip of printing the variables when results are not looking like I think they should)
When I print the value of the variables, they display properly (as they should). That's why I was curious if I wrote my If statement wrong.
Such a simple solution! I don't know why I didn't think of that! One more question...I think I have my if...else statement set up improperly. What it is supposed to do is if masterNumber equals...
I am running this code below:
public static void Check(int masterNumber)
{
int reverseIt = 0;
for (int i=0; i<=masterNumber; i++)
{
int r = masterNumber%10;