Rosetta Code talk:Add a Task: Difference between revisions

Content added Content deleted
imported>Yasser Mohammed
imported>Yasser Mohammed
Line 23: Line 23:
:::Just for another way to think about it, maybe we can say that Cateories are DB tables where the keys are the page names. Then Properties would be tables where the keys are the page name and an additional value. --[[User:Mwn3d|Mwn3d]] 22:27, 9 November 2010 (UTC)
:::Just for another way to think about it, maybe we can say that Cateories are DB tables where the keys are the page names. Then Properties would be tables where the keys are the page name and an additional value. --[[User:Mwn3d|Mwn3d]] 22:27, 9 November 2010 (UTC)


== Extensible prime generator Ring Programming Language ==
== '''Extensible prime generator Ring Programming Language''' ==
<big>
''''''# Ring--> ' Program to Print all Prime Numbers in an Interval''''
# Ring--> 'الحصول علي الأعداد الأولية في مدي محدد''''


<big># Ring--> ' Program to Print all Prime Numbers in an Interval'
# Ring--> 'الحصول علي الأعداد الأولية في مدي محدد'
?'Enter Low Number : ' give Dow
?'Enter Low Number : ' give Dow
?'Enter High Number : ' give UP
?'Enter High Number : ' give UP

for x=Dow to up y=x-1 pr=0
for x=Dow to up y=x-1 pr=0
for i=1 to y if x%(x-i)=0 or x=2 pr++ ok next
for i=1 to y if x%(x-i)=0 or x=2 pr++ ok next
Line 36: Line 36:
</big>
</big>
[[File:Screenshot 2023 09 30-1.png|thumb|Prime Numbers By Ring Language]]
[[File:Screenshot 2023 09 30-1.png|thumb|Prime Numbers By Ring Language]]
[https://youtu.be/8YMVe5BaP8k Study Ring IN]