In the following example, we will see how an integer variable will increase from 5 to 50 in increments of 5.
Perform the following steps:
- On a Blank project, add a Sequence activity.
- Now, create an integer type variable x. Set its default value to 5.
- Next, add a While activity to the Sequence.
- In the condition field, set x<50.
- Add an Assign activity to the body section of the While loop.
- Now, go to the Properties panel of the Assign activity and type in the text field integer variable for value field integer x+5.
-
Drag and drop a Write line activity and specify the variable name x and apply ToString method on this variable: