Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ΟΓΡΑΜΜΑ Διπλή_Ταξινόμηση
- ΜΕΤΑΒΛΗΤΕΣ
- ΧΑΡΑΚΤΗΡΕΣ: Ον[50], t2
- ΠΡΑΓΜΑΤΙΚΕΣ: ΜΟ[50], t1
- ΑΚΕΡΑΙΕΣ: i, j
- ΑΡΧΗ
- ΓΙΑ i ΑΠΟ 1 ΜΕΧΡΙ 50
- ΓΡΑΨΕ 'Δώσε όνομα και Μέσο Όρο Μαθητή:'
- ΔΙΑΒΑΣΕ Ον[i], ΜΟ[i]
- ΤΕΛΟΣ_ΕΠΑΝΑΛΗΨΗΣ
- ΓΙΑ i ΑΠΟ 2 ΜΕΧΡΙ 50
- ΓΙΑ j ΑΠΟ 50 ΜΕΧΡΙ i ΜΕ_ΒΗΜΑ -1
- ΑΝ ΜΟ[j] > ΜΟ[j - 1] ΤΟΤΕ
- t1 <- ΜΟ[j]
- ΜΟ[j] <- ΜΟ[j - 1]
- ΜΟ[j - 1] <- t1
- t2 <- Ον[j]
- Ον[j] <- Ον[j - 1]
- Ον[j - 1] <- t2
- ΤΕΛΟΣ_ΑΝ
- ΑΝ ΜΟ[j] = ΜΟ[j - 1] ΤΟΤΕ
- ΑΝ Ον[j] < Ον[j - 1] ΤΟΤΕ
- t2 <- Ον[j]
- Ον[j] <- Ον[j - 1]
- Ον[j - 1] <- t2
- ΤΕΛΟΣ_ΑΝ
- ΤΕΛΟΣ_ΑΝ
- ΤΕΛΟΣ_ΕΠΑΝΑΛΗΨΗΣ
- ΤΕΛΟΣ_ΕΠΑΝΑΛΗΨΗΣ
- ΓΙΑ i ΑΠΟ 1 ΜΕΧΡΙ 50
- ΓΡΑΨΕ Ον[i], ΜΟ[i]
- ΤΕΛΟΣ_ΕΠΑΝΑΛΗΨΗΣ
- ΤΕΛΟΣ_ΠΡΟΓΡΑΜΜΑΤΟΣ Διπλή_Ταξινόμηση
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement