Traditional Culture Encyclopedia - Traditional stories - How to draw a prime number flow chart between 1 and 100?
How to draw a prime number flow chart between 1 and 100?
Rem language: Visual Basic 6.0
Sub Main()? begin
i = 2
do
j = 2
Until i mod j = 0 or j * j> me.
j = j + 1
ring
If j * j> I then
MsgBox i, vbInformation, "output"
If ... it will be over.
If not (I< 100), then quit Do.
i = i + 1
ring
End Sub? end
- Previous article:The interesting tradition of Oxford University.
- Next article:Why use a long rod in winter fishing
- Related articles
- 6 Art Festival activity planning scheme
Art Festival Activity Planning Scheme 1
First, the guiding ideology:
Further enrich our campus cultural life, create a positive, fresh, elegan
- How to improve teachers' teaching level
- Where is the specialty of lard dumplings?
- What's the difference between Irish whistle and flute?
- 824 mechanical principle
- 1. What is the effect of blanching on plant pigments?
- How about Nanchang Lianchuang Electronics Factory?
- What is the cultural significance of the 24 solar terms in China?
- What kinds of medical beauty are there? What is the difference?
- What kind of sports are more suitable for elementary school students