[TI 83+]Mathématique -> Besoin d'aide
2 participants
Page 1 sur 1
[TI 83+]Mathématique -> Besoin d'aide
Voilà... j'ai décidé de faire un petit programme pour que vous compreniez que c'est vrai ce qu'Ephemere et moi-même affirmiont :
:0->U:0->V
:0->S:0->T
:Lbl 0
:ClrHome
:Input "NUMBER OF CARS:",A
:If A>99 or A<3
:Goto 0
:iPart(A)->X
:Lbl 1
:ClrHome
:randInt(1,X)->B
:Input "CHOOSE ONE CARD:",C
:If C>X or C<1
:Goto 1
:ClrHome
:Output(4,1,"1: YES
:Output(5,1,"0: NO
:Input "CHANGE OF CARD? ",R
:If R=1 and C=B
:S+1->S
:If R=0 and C=B
:T+1->T
:If R=1 and C=/B
:U+1->U
:If R=0 and C=/B
:V+1->V
:Goto 3
:Lbl 3
:ClrHome
:Output(1,1,"STATS:
:Output(2,1,"----------------
:Output(3,1,"WIN BY CHANGING:
:OUtput(4,7,U
:Output(5,1,"WIN BY =/ CHANGING:
:Output(6,7,T
:Output(7,1,"LOSES (=):
:Output(7,14,V
:Output(8,1,"LOSES (=/):
:Output(8,14,S
:Pause
:Goto 0
Voilà... je n'ai pas terminé, mais pour l'instant, il fonctionne!
:0->U:0->V
:0->S:0->T
:Lbl 0
:ClrHome
:Input "NUMBER OF CARS:",A
:If A>99 or A<3
:Goto 0
:iPart(A)->X
:Lbl 1
:ClrHome
:randInt(1,X)->B
:Input "CHOOSE ONE CARD:",C
:If C>X or C<1
:Goto 1
:ClrHome
:Output(4,1,"1: YES
:Output(5,1,"0: NO
:Input "CHANGE OF CARD? ",R
:If R=1 and C=B
:S+1->S
:If R=0 and C=B
:T+1->T
:If R=1 and C=/B
:U+1->U
:If R=0 and C=/B
:V+1->V
:Goto 3
:Lbl 3
:ClrHome
:Output(1,1,"STATS:
:Output(2,1,"----------------
:Output(3,1,"WIN BY CHANGING:
:OUtput(4,7,U
:Output(5,1,"WIN BY =/ CHANGING:
:Output(6,7,T
:Output(7,1,"LOSES (=):
:Output(7,14,V
:Output(8,1,"LOSES (=/):
:Output(8,14,S
:Pause
:Goto 0
Voilà... je n'ai pas terminé, mais pour l'instant, il fonctionne!
Re: [TI 83+]Mathématique -> Besoin d'aide
Et pourquoi as-tu besoin d'aide ?
Julien- Administrateur
- Nombre de messages : 12291
Age : 37
Localisation : Clermont-Ferrand
Profession / Etudes : Ingénieur
Points : 22499
Date d'inscription : 10/03/2005
Re: [TI 83+]Mathématique -> Besoin d'aide
Non... c'était en relation avec le topic "Besoin d'aide" du forum "Mathématique"!
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|
Jeu 2 Juil 2015 - 15:16 par louaraychi
» Devoir maison sur équilibre et réaction chimique
Dim 1 Fév 2015 - 17:19 par sararose
» Ma présentation
Sam 25 Oct 2014 - 23:29 par Rith
» projet scientique sur la LUMIERE
Ven 26 Sep 2014 - 20:33 par benjamin-010
» La trajectoire de la Terre
Mar 5 Aoû 2014 - 22:19 par Alban
» Equilibrer une réaction redox
Dim 8 Juin 2014 - 21:18 par Courtney ♥
» les effets sur les lignes de transport de l’électricité
Ven 30 Mai 2014 - 17:14 par leila14
» lignes de transport de l'électricité
Ven 30 Mai 2014 - 17:07 par leila14
» Gravitation
Ven 16 Mai 2014 - 20:16 par fatimaa
» Maquette suspension de moto 2D
Jeu 17 Avr 2014 - 17:20 par Sti2d