I made a program to put in a number to check if it has a whole root. Helps me with math homework. BUT, I noticed if I input a large number that I know has a root that should be found, it just gives me the answer of 8^22 regardless.
I thought using long long would have fixed it but it had no effect. Why does the computer get confused for very large numbers with long long?
It works just fine for anything up to 9 digits I've tested.
It gets confused with long long for the same reason I suspect it'd get confused with a normal int. Long long does have a size limit, although it is many times larger than a normal int, and I suspect you're reaching it.
Sorry. There is a way around your problem, but it's not exactly simple.
Thanks, re-tested with smaller numbers and it does work. I thought long long was going to enable me to work in the quadrillions or something.
Next step is to also display the prime factorization of each number I throw at it. Need to learn how to make seperate objects and return values. I can't make a new function and figure out how to return a value from the function and store it in a variable.
Java this was easy, but I gave up on Java after realizing I couldn't make executable programs.