Basic increment program using sequence

Hi
PFA
i am trying to take the input from user and using the while loop condition increment the value

but i am not getting the expected output

kindly clarify where i am going wrong

Hi @chintu, Can you paste the error please?

step1

my program gets stops insist of getting increment after i clicked ok button

Hello there,
Because the output of Input dialog of type generic and in your expression num=num+1 give 11 (concatenates)hence it exist the while loop.
Change the variable type to int.
here we go.
whileloop.xaml (8.4 KB)