369,853 views
27 votes
27 votes
How do you increase the number of tries by one?

tries.add(1)

tries = tries + 1

tries = 1

User Gamliela
by
2.7k points

1 Answer

12 votes
12 votes

Answer:

tries = tries + 1

Step-by-step explanation:

This is a universal way to increment your variable. In some languages, the following notation also works:

tries++;

tries += 1;

Again, it depends upon the language you are using. Each language has it's own syntax.

User Noh Kumado
by
2.5k points