Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Related to loop

Former Member
0 Likes
691

Hi all

give me a sample pgm on while-end while

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
672

Hi,

try this...

data : lv type i value 5.

while lv < 6.

write : lv.

lv = lv -1.

endwhile.

reward points if useful.

Regards,

vinodh

Hi all

give me a sample pgm on while-end while

4 REPLIES 4
Read only

Former Member
0 Likes
673

Hi,

try this...

data : lv type i value 5.

while lv < 6.

write : lv.

lv = lv -1.

endwhile.

reward points if useful.

Regards,

vinodh

Read only

Former Member
0 Likes
672

data : num type i.

num = 0.

While num > 10.

num = num + 1.

write num.

endwhile.

output

1 2 3 4 5 6 7 8 9 10

Read only

Former Member
0 Likes
672

data:

w_num type i.

while w_num lt 20.

write w_num.

add 1 to w_num.

endwhile.

regards,

Pavan

Read only

Former Member
0 Likes
672

Check the sample programs:

demo_flow_control_while

demo_flow_control_end

demo_flow_control_do

Regards,

Ravi