I'm not really sure where I should have posted this thread, please mod copy my thread to the correct section if it doesn't fit here.
I'm stuck in a problem, I want to write a simple code that calculates: 1^1,2^2,3^3,4^4,5^5 using two WHILE statements only, how can I achieve such a thing?
I have this code that calcultes 3^7:
while N ≦ 7 do
Y=Y x 3
N = N + 1
please help guys :)