int i;
for(i=1; i = 10; i++),
System.out.print(i);
Answers
The output will print the numbers 1 to 10
Answer:
Hello Mate, I don't know what do you want to know from this question but according to me I am explaining this question..
Explanation:
You have used a data type Integer in Java as "i" and then you have used it in a for loop condition where the condition says that the initial value of "i" will start from 1 and then this value of "i" will increase by 1 till 10
This means that you have printed 1 to 10 numbers in a list where you have used the above logic..
I hope you have liked my answer with its detailed explanation so you would not have any confusion or doubt regarding this..Also please mark my answer as the Brainlest and must rate it so I can work on other answers more and try to improve those in future..
Thank You
Answer:
Answer is : -1,0,1,2,3,4,5,6,7,8,9
Explanation:
It's correct bcz ,on the number line ,after -1,there comes 0,1,2,3,4,5,6, so long
So the loop is executing ten times ,so it's answer is till 9