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
How can we handle table control in bdc? : abap bdc
What is a currency factoring technique?
What are the Control levels in internal tables?
What do you mean by transparent tables in sap abap? : abap data dictionary
What is a table cluster? : abap data dictionary
There is 1 person but it’s displaying that this person cannot be booked. He is not available for the business event. Can you tell me where is it going wrong? What can be the reasons? : sap abap hr
How will u handle the situation – In a report using function module to generate a IDOC, How will u handle the error IDOC in the same report ?
Explain different types of locks?
What are indexes? : sap abap data dictionary
Explain what is an rfc?
Name the abap/4 modularization techniques?
What are the Synchronous and asynchronous methods in bdc ?
Explain what are the events in screen programming?
What are null values?
What is the table & field to identify the no of items (bottles) stored in one case?