Basic increment program using sequence

studio

#1

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


#2

Hi @chintu, Can you paste the error please?


#3

step1


#4

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


#5

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)