Can we also change the for statment whitin the body? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we also change the for statment whitin the body?

21st Aug 2018, 7:28 PM
TahaNM
TahaNM - avatar
4 Answers
0
You should give 'a' variable a value first but other than that yes you could but there aren't many cases where that is needed.
21st Aug 2018, 8:23 PM
TurtleShell
TurtleShell - avatar
0
Please be more specific.
21st Aug 2018, 8:12 PM
TurtleShell
TurtleShell - avatar
0
for(int a; a > 5; a++) can we change a in for's body?
21st Aug 2018, 8:13 PM
TahaNM
TahaNM - avatar
0
thanks...
21st Aug 2018, 8:25 PM
TahaNM
TahaNM - avatar