write the program for prime numbers between 1 to 1000
Answer Posted / kallol banerjee
data: n type i default 1,
m type i,
p type i,
r type p decimal 2,
l_v_cnt type n.
do n times.
if n <= 1000.
m = 1.
do m times.
if m <= n.
r = n / m.
p = n / m.
m = m + 1.
if r = p.
l_v_cnt = l_v_cnt + 1.
endif.
endif.
enddo.
else.
exit.
endif.
if l_v_cnt = '2'.
write: n.
endif.
n = n + 1.
enddo.
| Is This Answer Correct ? | 19 Yes | 11 No |
Post New Answer View All Answers
The commands through which an abap/4 module can “branch to “ or “call” the next screen are?
What is the Process to transfer IDOC from Outbound System to Inbound system.
What is lock object ? : abap data dictionary
Explain buffering
What is an “on request field” statement?
What is the symbol to do “concatenation” operation in nw abap 7.4 ?
why to create a custom BAPI if the BAPI already exists? y to find BAPI again? frankly even i dint undstnd tne question properly. if any one come across this q please do anser me.
what is call back in alv?
What are the different function modules used in sapscript?
Define subtype ? : abap hr
What is the use of abap data dictionary? : abap data dictionary
What will happen when we use single buffered selected?
What are the ways you can do the tuning?
What are the steps to execute session method?
how can we enable hyperlink in screen painter?