Computer Science, asked by anuj1151, 1 year ago

In java, in for loop; Can we declare and initialize variable like:-

for(int a= 1;a<=10;a++);

Answers

Answered by nain31
1
YEAH WE CAN INTIATIALIZE THE VARIABLES LIKE THIS ALSO...
Answered by Adarshthakur11
0
yes u can
the declaration is same in both java and c++
Similar questions