What will be the output of the given code? counter = 1 while counter < 5 puts counter counter = counter + 1 end

Question:What will be the output of the given code? counter = 1 while counter < 5 puts counter counter = counter + 1 end

1. Prints the number from 1 to 4

2.Prints the number from 1 to 5

3. Prints the number from 2 to 5

4.Prints the number from 2 to 4


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!