How to make update one int after another int reaches a certain value?

Need to do update one int a, after another int reaches a certain value, say when the first will reach 100 int, the second int to add 1;
April 19th 20 at 12:11
2 answers
April 19th 20 at 12:13
Solution
IF A>100 THEN B = B+1

Maybe You need books to read on programming in General?
For example:
Unity in action. Multiplatform development using C#
or
What the tutorial C# the zero level to choose?
@sanford,
This does not work, tried
then you have no future in coding. and this is no joke - alaina commented on April 19th 20 at 12:16
@alaina, I really laughed with his comment - jennyfer.Feeney56 commented on April 19th 20 at 12:19
@jennyfer.Feeney56 ... I almost cried.. - alaina commented on April 19th 20 at 12:22
@alaina, the Way he find? Go into unity, write a script and understand what your shit code is not working. - sanford commented on April 19th 20 at 12:25
@alaina,+ you also deleted your answer, which means that it does not work. - sanford commented on April 19th 20 at 12:28
April 19th 20 at 12:15
Solution
int a = 1;
int b = 1;
while(a<101)
{
a++;
if(a>=100) b++;
Console.WriteLine(b);
}
for example, in the while condition you can insert anything
Thank you. - sanford commented on April 19th 20 at 12:18

Find more questions by tags Unity Game EngineC#