Can we use floating variables in for loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we use floating variables in for loop

9th Aug 2019, 5:33 PM
Charan Kumar N
Charan Kumar N - avatar
3 Answers
+ 5
Yes, we can. for (float i = 0; i < 5.0f; i++) {} We can also make more descriptive questions and for god's sake tell each other what language you are trying to get the answer in.
9th Aug 2019, 5:39 PM
Airree
Airree - avatar
9th Aug 2019, 7:39 PM
Sebastian Keßler
Sebastian Keßler - avatar
+ 2
Exactly. No languages are same, and poor All About JUMP_LINK__&&__Python__&&__JUMP_LINK did not want to look up your profile just to see what languages do you use, so that's why.
9th Aug 2019, 5:41 PM
Airree
Airree - avatar