this can be achieved by starting with "for" (no quotes) then creating an integer, assigning a value to it, specifying a parameter for it such as x<10 or i<7. at this point i++ can be used to increment your integer i after your print command is run. we're encouraged not to look things up so we can work through it but without the knowledge being provided to us about for loops and how to use them BEFORE having to do a task using them, I'd highly suggest looking up "Java For Loop" and "What Does i++ Do"
Garrett Bowler
Level 3
Help to others who were also tossed into this with no for loop knowledge
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Gellert Varga
23 July 2020, 11:03
This task also can be easily solved without a cycle.
(But we'll learn about it later anyway.)
+1
Garrett Bowler
24 July 2020, 01:10
please explain how, Ive been struggling getting the ansers without doing what seems to be more advanced than intended or different than whats intended
0
Gellert Varga
24 July 2020, 11:56
See my answer in personal message
0