Challenge sequence 2:. 1,1,4,8,9,27,16,64,25,125.... Code it...All languages welcome
All languages welcome.... code it..
I hope I got the idea: It's like: 1²,1³,2²,2³,3²,3³ And it continues this way. Am I right?
https://code.sololearn.com/cXYR1KO2150P/?ref=app In one line 🙂
my try in cpp https://code.sololearn.com/cpefzI70sg4G/?ref=app
How's this for concise c++? https://code.sololearn.com/cOPUipPJ9J77/#cpp
@amrit code it...than you will get complete sequence with the logic