Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

The commands through which an abap/4 module can “branch to “ or “call” the next screen are?

1088


What is the Process to transfer IDOC from Outbound System to Inbound system.

2099


What is lock object ? : abap data dictionary

1052


Explain buffering

1283


What is an “on request field” statement?

1124


​​What is the symbol to do “concatenation” operation in​​ nw​​ abap​​ 7.4​​ ?

1312


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.

2150


what is call back in alv?

2405


What are the different function modules used in sapscript?

994


Define subtype ? : abap hr

972


What is the use of abap data dictionary? : abap data dictionary

994


What will happen when we use single buffered selected?

1002


What are the ways you can do the tuning?

1010


What are the steps to execute session method?

997


how can we enable hyperlink in screen painter?

3861