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

any one can tell me simple loop program to print pattern

Former Member
0 Likes
3,876

pz send me the source code of simple number pattern loop program

1

12

123
1234

12345.

Moderator Message - Spoon-feeding is not encouraged. Try to code with your own effort & if stuck get back to the forums.

Message was edited by: Suhas Saha

pz send me the source code of simple number pattern loop program

1

12

123
1234

12345.

Moderator Message - Spoon-feeding is not encouraged. Try to code with your own effort & if stuck get back to the forums.

Message was edited by: Suhas Saha

3 REPLIES 3
Read only

gouravkumar64
Active Contributor
0 Likes
1,233

Hi,

It is basic question,Your discussion may be LOCKED.

try like this

do n times "here n= 5.

lv_var1 = lv_var.

lv_var = sy-index.

concatenate lv_var1 lv_var into lv_var.

write lv_var.

enddo.

Thanks..

Gourav.

Moderator Message - Instead of notifying the OP of the "basicness" of his query & responding to it, hit the "abuse" button.

Message was edited by: Suhas Saha

Read only

Former Member
0 Likes
1,233

Hi,

parameters no type i.
   data : no1,cnt,cnt1 type i.
cnt1 = 0.
   do no times.
     do cnt times.
       cnt1 = cnt1 + 1.
         write : cnt1.
       enddo.
       write : /.
       cnt = cnt + 1.
       cnt1 = 0.
   enddo.

Again : Basic question.

Please move to points free question

Avirat

Read only

Former Member
0 Likes
1,233

Please dont ask SCN to do your homework.