Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature may not be available in some browsers.
[B]Sub[/B] [B]Main[/B]
[B]Dim[/B] [B]nu[/B](5),[B]ru[/B](10)
Ini [B]=[/B] [B]EstrazioneFin[/B] [B]-[/B] 20
fin [B]=[/B] [B]EstrazioneFin[/B]
[B]For[/B] es [B]=[/B] Ini [B]To[/B] fin
[B]For[/B] r [B]=[/B] 1 [B]To[/B] 10
[B]If[/B] r [B]=[/B] 1 [B]Or[/B] r [B]=[/B] 6 [B]Or[/B] r [B]=[/B] 7 [B]Then[/B]
[B]ru[/B](r) [B]=[/B] r
a [B]=[/B] [B]StringaRuote[/B]([B]ru[/B])
[B]For[/B] p [B]=[/B] 1 [B]To[/B] 5
[B]nu[/B](p) [B]=[/B] [B]Estratto[/B](es,r,p)
[B]EliminaRipetuti[/B]([B]nu[/B])
[B]Next[/B]
[B]Scrivi[/B] [B]StringaNumeri[/B]([B]nu[/B],,1) [B]&[/B] " ",0,0
[B]End[/B] [B]If[/B]
[B]Next[/B]
[B]If[/B] [B]ScriptInterrotto[/B] [B]Then[/B] [B]Exit[/B] [B]For[/B]
[B]Scrivi[/B] [B]vbTab[/B] [B]&[/B] a [B]&[/B] [B]vbTab[/B] [B]&[/B] es,1,1
[B]Next[/B]
[B]Scrivi[/B]
[B]End[/B] [B]Sub[/B]
[SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0][B]Sub[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Main[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Dim[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](5),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu2[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](5),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu3[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](5),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]ru[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](10),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nn[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](90),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nn1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](90)[/SIZE]
[SIZE=2]Ini [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]EstrazioneFin[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]-[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 10[/SIZE]
[SIZE=2]fin [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]EstrazioneFin[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]For[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] es [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] Ini [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]To[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] fin[/SIZE]
[SIZE=2]r1 [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 1[/SIZE]
[SIZE=2]r2 [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 6[/SIZE]
[SIZE=2]r3 [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 7[/SIZE]
[B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]ru[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](1) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] r1[/SIZE]
[B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]ru[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](2) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] r2[/SIZE]
[B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]ru[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](3) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] r3[/SIZE]
[SIZE=2]a [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]StringaRuote[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]([/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]ru[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2])[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]For[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] p [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 1 [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]To[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 5[/SIZE]
[B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](p) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Estratto[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](es,r1,p)[/SIZE]
[B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu2[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](p) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Estratto[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](es,r2,p)[/SIZE]
[B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu3[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](p) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Estratto[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](es,r3,p)[/SIZE]
[SIZE=2]aa [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Array[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]([/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](1),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](2),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](3),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](4),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](5),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu2[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](1),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu2[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](2),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu2[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](3),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu2[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](4),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu2[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](5),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu3[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](1),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu3[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](2),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu3[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](3),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu3[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](4),[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nu3[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](5))[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Next[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Call[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]OrdinaMatrice[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](aa,1,1)[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]StringaNumeri[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](aa,,1) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]&[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] "[/SIZE][SIZE=2][COLOR=#ff8000][SIZE=2][COLOR=#ff8000] [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]",0,0[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]If[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]ScriptInterrotto[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Then[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Exit[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]For[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]vbTab[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]&[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] a [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]&[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]vbTab[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]&[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] es,1,1[/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]'---- conta i numeri-------------[/COLOR][/SIZE][/COLOR][/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Next[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]For[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] x [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 0 [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]To[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 20[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]For[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] y [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 1 [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]To[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 90[/SIZE]
[B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nn[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](1) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] y[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]If[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]SerieFreqTurbo[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](Ini,fin,[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nn[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2],[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]ru[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2],1) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] x [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Then[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[SIZE=2]k [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] k [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]+[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 1[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]ReDim[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Preserve[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]num[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](k)[/SIZE]
[B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]num[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](k) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] y[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]End[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]If[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Next[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]'............. scrivi i numeri ............[/COLOR][/SIZE][/COLOR][/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]If[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] k [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]>[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 0 [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Then[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Format2[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](x) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]&[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] "[/SIZE][SIZE=2][COLOR=#ff8000][SIZE=2][COLOR=#ff8000] volte..... Presenze = [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]&[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]FormatSpace[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](k,2),0,0[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] "[/SIZE][SIZE=2][COLOR=#ff8000][SIZE=2][COLOR=#ff8000] NUM... [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]&[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]StringaNumeri[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]([/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]num[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2],,1),1,1,,1,2[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]End[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]If[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[SIZE=2]k [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 0[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Next[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]'......... scrivi tutti i numeri presenti > 0 ...................[/COLOR][/SIZE][/COLOR][/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]For[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] yy [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 1 [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]To[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 90[/SIZE]
[B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nn1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](1) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] yy[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]If[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]SerieFreqTurbo[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](Ini,fin,[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]nn1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2],[/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]ru[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2],1) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]>[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 0 [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Then[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[SIZE=2]kk [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] kk [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]+[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] 1[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]ReDim[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Preserve[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]num1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](kk)[/SIZE]
[B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]num1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](kk) [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]=[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] yy[/SIZE]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]End[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]If[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Next[/COLOR][/SIZE][/COLOR][/SIZE][/B]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]'............. scrivi i numeri ............[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]'If kk > 0 Then[/COLOR][/SIZE][/COLOR][/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] "[/SIZE][SIZE=2][COLOR=#ff8000][SIZE=2][COLOR=#ff8000]Presenze = [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]&[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]FormatSpace[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2](kk,2),0,0[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] "[/SIZE][SIZE=2][COLOR=#ff8000][SIZE=2][COLOR=#ff8000] NUM... [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" [/SIZE][B][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]&[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]StringaNumeri[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]([/SIZE][B][SIZE=2][COLOR=#ff00ff][SIZE=2][COLOR=#ff00ff]num1[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2],,1),1,1,,1,2[/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]'End If[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]'kk = 0[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]'............................................................................[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0][B]End[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Sub[/COLOR][/SIZE][/COLOR][/SIZE][/B]
Sub Main
Dim nu1(5),nu2(5),nu3(5),ru(10),nn(90),nn1(90)
Ini = EstrazioneFin - 10
fin = EstrazioneFin
For es = Ini To fin
r1 = 1
r2 = 6
r3 = 7
ru(1) = r1
ru(2) = r2
ru(3) = r3
a = StringaRuote(ru)
For p = 1 To 5
nu1(p) = Estratto(es,r1,p)
nu2(p) = Estratto(es,r2,p)
nu3(p) = Estratto(es,r3,p)
aa = Array(nu1(1),nu1(2),nu1(3),nu1(4),nu1(5),nu2(1),nu2(2),nu2(3),nu2(4),nu2(5),nu3(1),nu3(2),nu3(3),nu3(4),nu3(5))
Next
Call OrdinaMatrice(aa,1,1)
Scrivi StringaNumeri(aa,,1) & " ",0,0
If ScriptInterrotto Then Exit For
Scrivi vbTab & a & vbTab & es,1,1
'---- conta i numeri-------------
Next
Scrivi
For x = 0 To 20
For y = 1 To 90
nn(1) = y
If SerieFreqTurbo(Ini,fin,nn,ru,1) = x Then
k = k + 1
ReDim Preserve num(k)
num(k) = y
End If
Next
'............. scrivi i numeri ............
If k > 0 Then
Scrivi Format2(x) & " volte..... Presenze = " & FormatSpace(k,2),0,0
Scrivi " NUM... " & StringaNumeri(num,,1),1,1,,1,2
End If
k = 0
Next
Scrivi
'......... scrivi tutti i numeri presenti > 0 ...................
For yy = 1 To 90
nn1(1) = yy
If SerieFreqTurbo(Ini,fin,nn1,ru,1) > 0 Then
kk = kk + 1
ReDim Preserve num1(kk)
num1(kk) = yy
End If
Next
'............. scrivi i numeri ............
'If kk > 0 Then
Scrivi "Presenze = " & FormatSpace(kk,2),0,0
Scrivi " NUM... " & StringaNumeri(num1,,1),1,1,,1,2
'End If
'kk = 0
'............................................................................
End Sub
Sub Main
Dim nu1(5),nu2(5),nu3(5),ru(10),nn(90),nn1(90),vetQ,vetN
Ini = EstrazioneFin - 10
fin = EstrazioneFin
For es = Ini To fin
r1 = 1
r2 = 6
r3 = 7
ru(1) = r1
ru(2) = r2
ru(3) = r3
a = StringaRuote(ru)
For p = 1 To 5
nu1(p) = Estratto(es,r1,p)
nu2(p) = Estratto(es,r2,p)
nu3(p) = Estratto(es,r3,p)
aa = Array(nu1(1),nu1(2),nu1(3),nu1(4),nu1(5),nu2(1),nu2(2),nu2(3),nu2(4),nu2(5),nu3(1),nu3(2),nu3(3),nu3(4),nu3(5))
Call NumeriRipetutiRilevatiV(aa,vetN,vetQ)
Next
Call OrdinaMatrice(aa,1,1)
Scrivi StringaNumeri(aa,,1) & " ",0,0
If ScriptInterrotto Then Exit For
Scrivi vbTab & a & vbTab & es & " Numeri Ripetuti Rilevati in Es.... " & StringaNumeri(vetN),1,1
'---- conta i numeri-------------
Next
Scrivi
For x = 0 To 20
For y = 1 To 90
nn(1) = y
If SerieFreqTurbo(Ini,fin,nn,ru,1) = x Then
k = k + 1
ReDim Preserve num(k)
num(k) = y
End If
Next
'............. scrivi i numeri ............
If k > 0 Then
Scrivi Format2(x) & " volte..... Presenze = " & FormatSpace(k,2),0,0
Scrivi " NUM... " & StringaNumeri(num,,1),1,1,,1,2
End If
k = 0
Next
Scrivi
'......... scrivi tutti i numeri presenti > 0 ...................
For yy = 1 To 90
nn1(1) = yy
If SerieFreqTurbo(Ini,fin,nn1,ru,1) > 0 Then
kk = kk + 1
ReDim Preserve num1(kk)
num1(kk) = yy
End If
Next
'............. scrivi i numeri ............
'If kk > 0 Then
Scrivi "Presenze = " & FormatSpace(kk,2),0,0
Scrivi " NUM... " & StringaNumeri(num1,,1),1,1,,1,2
'End If
'kk = 0
'............................................................................
End Sub