hello
i need help with my program. i have to write a program that allows user to input a base and an exponent. i have the program already done, but one of the requirements for the assignment is that if exponent <= 1, the "for" loop must not run, and just display the answer...my variable for the result is double res = 1...however, i think the loop still runs
can someone please help me understand how it is that i can prevent the "for" loop from running, and still get the result that i need?