Writing a program(HELP!! It's due tommorrow!!!!!)
Hey, I was wondering if you guys can help me with this program. I'm taking computer science AB and we were assigned to this program.
In this program, we had to use the three loops, the for, the while, and the do-while loops to print out the #'s 1-10 squared without the multiplying and without math classes. Well, on the while loop, I have print out 1-10 squared in reverse. So far, not going well:( I finished the rest. Anyway, here's the code:
n = 100;
num-=2;//decreases 19 by 2
seq=n-num;//decreases n by num
Any suggestions(it's due tommorrow)?