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
What are indexes? : abap hr
What is the major difference between pool tables and transparent tables?
What is off cycle payroll run
What are the three hierarchical levels of data types and objects?
What is sap locking?
Does sap handle multiple languages?
Explain what are the system fields? Explain?
How many types of size categories and data classes are there?
Can you print decimals in type n? What is difference between float and packed data type?
What is the use of enqueue function module? : sap abap data dictionary
The max number of calling modes stacked at one time is?
What are the different types of the variable in the sap abap?
Explain the differences between se01, se09 and se10?
What is the use of start-of-selection.,if not use in report what will happen,?
What are the difference between pool tables and transparent tables?