just see my code it won't fulfill conditions as printing 1 to 10 and printing each value on new line