how to understand loops more clearly
First initialize, then put condition, at last provide increment / decrement.
If we want to write counting from 1-10. Then initialize i= 1
Put condition u want to print ending term
At last provide increment bcz to go frwd
And concalusion is (i=1;i<=10;i++)
It print 1 to 10.
Hope u understand.