Ciao,
guarda questo bel listato di Djnomade,
potrebbe fare al caso tuo.
SOMMA CIFRE PARI - SOMMA CIFRE DISPARI di Djnomade
Scrivi String(17,32) & "SOMMA CIFRE PARI - SOMMA CIFRE DISPARI ",1
Scrivi String(45,32) & "by DjNomade",1
ColoreTesto 0
Sub Main()
Dim nu1(10),nu2(10),nu3(10),nu4(10),amb(8)
Dim ruote(10),ruota(10)
Dim poste(10),poste1(5),poste2(5),poste3(5)
estr = CInt(InputBox("Quante estrazioni di RICERCA?","estrazioni di RICERCA",5))
r1 = InputBox("Scegli la Ruota?","Ruota",1)
poste1(1) = 1.5
poste1(2) = 1
fin = EstrazioneFin
ini = fin - estr
For es = ini To fin
Messaggio "Numero Estrazione esaminata " & es
n1 = Decina(Estratto(es,r1,1))
n2 = Cadenza(Estratto(es,r1,1))
n3 = Decina(Estratto(es,r1,2))
n4 = Cadenza(Estratto(es,r1,2))
n5 = Decina(Estratto(es,r1,3))
n6 = Cadenza(Estratto(es,r1,3))
n7 = Decina(Estratto(es,r1,4))
n8 = Cadenza(Estratto(es,r1,4))
n9 = Decina(Estratto(es,r1,5))
n10 = Cadenza(Estratto(es,r1,5))
n1d = Decina(Estratto(es,r1,1))
n2d = Cadenza(Estratto(es,r1,1))
n3d = Decina(Estratto(es,r1,2))
n4d = Cadenza(Estratto(es,r1,2))
n5d = Decina(Estratto(es,r1,3))
n6d = Cadenza(Estratto(es,r1,3))
n7d = Decina(Estratto(es,r1,4))
n8d = Cadenza(Estratto(es,r1,4))
n9d = Decina(Estratto(es,r1,5))
n10d = Cadenza(Estratto(es,r1,5))
If pari(n1) = True Then n1 = n1 Else n1 = 0
If pari(n2) = True Then n2 = n2 Else n2 = 0
If pari(n3) = True Then n3 = n3 Else n3 = 0
If pari(n4) = True Then n4 = n4 Else n4 = 0
If pari(n5) = True Then n5 = n5 Else n5 = 0
If pari(n6) = True Then n6 = n6 Else n6 = 0
If pari(n7) = True Then n7 = n7 Else n7 = 0
If pari(n8) = True Then n8 = n8 Else n8 = 0
If pari(n9) = True Then n9 = n9 Else n9 = 0
If pari(n10) = True Then n10 = n10 Else n10 = 0
sommePari =(n1 + n2 + n3 + n4 + n5 + n6 + n7 + n8 + n9 + n10)
If pari(n1d) = False Then n1d = n1d Else n1d = 0
If pari(n2d) = False Then n2d = n2d Else n2d = 0
If pari(n3d) = False Then n3d = n3d Else n3d = 0
If pari(n4d) = False Then n4d = n4d Else n4d = 0
If pari(n5d) = False Then n5d = n5d Else n5d = 0
If pari(n6d) = False Then n6d = n6d Else n6d = 0
If pari(n7d) = False Then n7d = n7d Else n7d = 0
If pari(n8d) = False Then n8d = n8d Else n8d = 0
If pari(n9d) = False Then n9d = n9d Else n9d = 0
If pari(n10d) = False Then n100 = n10d Else n10d = 0
sommeDispari =(n1d + n2d + n3d + n4d + n5d + n6d + n7d + n8d + n9d + n10d)
casi = casi + 1
Scrivi String(55,"-") & " caso n° " &(casi),1
Scrivi DataEstrazione(es,1) & " < " & SiglaRuota(r1) & " " & StringaEstratti(es,r1),1
Scrivi
ColoreTesto 1
Scrivi" > Somma cifre Pari < " &(n1) & " " &(n2) & " " &(n3) & " " &(n4) & " " &(n5) & " " &(n6) & " " &(n7) & " " &(n8) & " " &(n9) & " " &(n10) & " = " & Format2(sommePari),1
ColoreTesto 2
Scrivi" > Somma cifre Dispari < " &(n1d) & " " &(n2d) & " " &(n3d) & " " &(n4d) & " " &(n5d) & " " &(n6d) & " " &(n7d) & " " &(n8d) & " " &(n9d) & " " &(n10d) & " = " & Format2(sommeDispari),1
ColoreTesto 0
ruota(1) = r1
k = 13
co = 0
nu2(1) = sommePari
nu2(2) = sommeDispari
ImpostaGiocata 1,nu2,ruota,poste1,k
'Gioca es
Next
'ScriviResoconto
'ColoreTesto 2
'Scrivi String(17,32) & "SOMMA CIFRE PARI - SOMMA CIFRE DISPARI ",1
'Scrivi String(45,32) & "by DjNomade",1
'ColoreTesto 0
End Sub
RESOCONTO :
------------------------------------------------------- caso n° 1
giovedì, apr 29 2021 < BA 87.52.49.10.51
> Somma cifre Pari < 8 0 0 2 4 0 0 0 0 0 = 14
> Somma cifre Dispari < 0 7 5 0 0 9 1 0 5 1 = 28
------------------------------------------------------- caso n° 2
lunedì, mag 3 2021 < BA 42.57.78.18.43
> Somma cifre Pari < 4 2 0 0 0 8 0 8 4 0 = 26
> Somma cifre Dispari < 0 0 5 7 7 0 1 0 0 3 = 23
------------------------------------------------------- caso n° 3
martedì, mag 4 2021 < BA 30.10.84.47.64
> Somma cifre Pari < 0 0 0 0 8 4 4 0 6 4 = 26
> Somma cifre Dispari < 3 0 1 0 0 0 0 7 0 0 = 11
------------------------------------------------------- caso n° 4
giovedì, mag 6 2021 < BA 29.63.52.60.85
> Somma cifre Pari < 2 0 6 0 0 2 6 0 8 0 = 24
> Somma cifre Dispari < 0 9 0 3 5 0 0 0 0 5 = 22
------------------------------------------------------- caso n° 5
sabato, mag 8 2021 < BA 68.05.34.17.43
> Somma cifre Pari < 6 8 0 0 0 4 0 0 4 0 = 22
> Somma cifre Dispari < 0 0 0 5 3 0 1 7 0 3 = 19
------------------------------------------------------- caso n° 6
martedì, mag 11 2021 < BA 77.67.73.28.63
> Somma cifre Pari < 0 0 6 0 0 0 2 8 6 0 = 22
> Somma cifre Dispari < 7 7 0 7 7 3 0 0 0 3 = 34