[Solved] I saw this code and I don't understand the for loop in there.Why is it there,what is the purpose 🤔.Thanks. | Sololearn: Learn to code for FREE!

+3

[Solved] I saw this code and I don't understand the for loop in there.Why is it there,what is the purpose 🤔.Thanks.

https://code.sololearn.com/cykE5ibzQGbi/?ref=app NB : The code is for C# 23 End module

3/19/2021 9:47:45 PM

!Derrickee

2 Answers

New Answer

+2

the loop is counting from 0 to whatever number you entered. When the count is a multiple of 3 it prints an asterisk instead of the number.

+4

Martin Taylor I get it now . I did not see the important of it at first.Thank you very much.The community appreciate your effort in trying to help everyone.Good night😁😉