^ Thank you so much gaurav its perfect.. well I have a new problem bro our professor said "Make a nested loop, that will prints out All Even numbers in in 1-50, and when it goes to 51-100 it prints out odd numbers"
basically when its still 1<50 it will prints out 2,4,6,8..50 and when its 51-100...