Accueil > > > CALCULATRICE EN VBS AVEC PLUSIEUR AUTRE OPTION ET CALCULE MAINTENANT LES EXPOSANTS (MIS À JOUR!!! IL N'Y A PU AUCUNE ERREUR...)
CALCULATRICE EN VBS AVEC PLUSIEUR AUTRE OPTION ET CALCULE MAINTENANT LES EXPOSANTS (MIS À JOUR!!! IL N'Y A PU AUCUNE ERREUR...)
Information sur la source
Description
calculatrice en vbs avec plusieur autre option et calcule maintenant les exposants (Mis à jour!!! Il N'y a pu aucune erreur...)
Source
- On error resume next
- do until que < 0
- '**********************************************************************
- 'variable
-
- rien = ""
- un = "1"
- deux = "2"
- troi = "3"
- quatre = "4"
- cinq = "5"
- six = "6"
- sept = "7"
- huit = "8"
-
- '**********************************************************************
-
- com = InputBox ("Calculatrice (1), Aire, périmètre, circonférance, (2), Quitter (3),","Commande","")
- do while com = rien
- com = InputBox ("Calculatrice (1), Aire, périmètre, circonférance, (2), Quitter (3),","Commande","")
- Loop
-
- '**********************************************************************
- If com = un then
- '**********************************************************************
- opt = InputBox ("Addition (1), Soustraction (2), Multiplication (3), Division (4), % d'un nombre (5), Exposant (6), Raçine carré (7), Retour (8)","calculatrice","")
- do while opt = rien
- opt = InputBox ("Addition (1), Soustraction (2), Multiplication (3), Division (4), % d'un nombre (5), Exposant (6), Raçine carré (7), Retour (8)","calculatrice","")
- Loop
- '***************************************
- If opt = un then
- 'Addition
- num = InputBox ("1er nombre.")
- num = num --InputBox ("2e nombre.")
- MsgBox"La rep. est "&num&" .",vbinformation,"Calculatrice"
- End If
- '***************************************
- If opt = deux then
- 'Soustraction
- num = InputBox ("1er nombre.")
- num = num -InputBox ("2e nombre.")
- MsgBox"La rep. est "&num&" .",vbinformation,"Calculatrice"
- End If
- '***************************************
- If opt = troi then
- 'Multiplication
- num = InputBox ("1er nombre.")
- num = num *InputBox ("2e nombre.")
- MsgBox"La rep. est "&num&" .",vbinformation,"Calculatrice"
- End If
- '***************************************
- If opt = quatre then
- 'Division
- num = InputBox ("1er nombre.")
- num = num /InputBox ("2e nombre.")
- MsgBox"La rep. est "&num&" .",vbinformation,"Calculatrice"
- End If
- '***************************************
- If opt = cinq then
- 'Pourcentage d'un nombre
- argent = InputBox ("Nombre","Pourcentage d'un nombre.","")
- pour = InputBox ("Pourcentage","Pourcentage d'un nombre.","")
- pour = pour /100
- argent = argent*pour
- MsgBox"Le % de ce nombre est "&argent&" .",vbinformation,"Calculatrice"
- End If
- '***************************************
- If opt = six then
- 'exposant
- a = InputBox ("1er nombre.","Calculatrice","")
- b = InputBox ("2e nombre.","Calculatrice","")
- c = a^b
- MsgBox""&a&" exp."&b&" = "&c&"",vbinformation,"Calculatrice"
-
- End if
- '***************************************
- If opt = sept then
- 'Raçine Carré
-
- a = InputBox ("Nombre dont tu veux extraire le raçine carré.","Calculatrice","")
- b = a^0.5
- MsgBox"La raçine carré du nombre "&a&" est "&b&".",vbinformation,"Calculatrice"
-
- End If
- '***************************************
- If opt = huit then
- End If
- '***************************************
- End If
- '**********************************************************************
- If com = deux then
- '**********************************************************************
- opt = InputBox ("Circonférance du cercle. (1), Aire du cerle. (2), Le rayon à partir de la circonférance (3), Le rayon à partir de l'aire (4), Retour (5)")
- do while opt = rien
- opt = InputBox ("Circonférance du cercle. (1), Aire du cerle. (2), Le rayon à partir de la circonférance (3), Le rayon à partir de l'aire (4), Retour (5)")
- Loop
- '*****************
- If opt = un then
- '*****************
-
- 'Circonférance
- pie = 3.1416
- rayon = InputBox ("Rayon")
- rayon = 2 * rayon
- circ = rayon * pie
- MsgBox"La Circonférance est "&circ&" .",vbinformation,"Calculatrice"
-
- End If
-
- '*****************
- If opt = deux then
- '*****************
-
- 'Aire
- pie = 3.1416
- rayon = InputBox("Rayon")
- rayon = rayon * rayon
- aire = rayon * pie
- MsgBox"L'air du cercle est "&aire&" .",vbinformation,"Calculatrice"
-
- End If
-
- '*****************
- If opt = troi then
- '*****************
-
- 'Le rayon à partir de la circonférance
- pie = 3.1416
- circ = InputBox ("Circonférance")
- circ = circ /2
- circ = circ /pie
- rayon = circ
- MsgBox"Le rayon est "&rayon&" .",vbinformation,"Calculatrice"
-
- End If
-
- '*****************
- If opt = quatre then
- '*****************
-
- 'Le rayon à partir de l aire
- pie = 3.1416
- aire = InputBox ("Aire")
- aire = aire /pie
- rayon = aire
- a = rayon^0.5
- MsgBox"Le rayon est "&a&" .",vbinformation,"Calculatrice"
-
- End If
-
- '*****************
- If opt = cinq then
- '*****************
- End If
- End If
- '**********************************************************************
- If com = troi then exit do
- '**********************************************************************
- Loop
On error resume next
do until que < 0
'**********************************************************************
'variable
rien = ""
un = "1"
deux = "2"
troi = "3"
quatre = "4"
cinq = "5"
six = "6"
sept = "7"
huit = "8"
'**********************************************************************
com = InputBox ("Calculatrice (1), Aire, périmètre, circonférance, (2), Quitter (3),","Commande","")
do while com = rien
com = InputBox ("Calculatrice (1), Aire, périmètre, circonférance, (2), Quitter (3),","Commande","")
Loop
'**********************************************************************
If com = un then
'**********************************************************************
opt = InputBox ("Addition (1), Soustraction (2), Multiplication (3), Division (4), % d'un nombre (5), Exposant (6), Raçine carré (7), Retour (8)","calculatrice","")
do while opt = rien
opt = InputBox ("Addition (1), Soustraction (2), Multiplication (3), Division (4), % d'un nombre (5), Exposant (6), Raçine carré (7), Retour (8)","calculatrice","")
Loop
'***************************************
If opt = un then
'Addition
num = InputBox ("1er nombre.")
num = num --InputBox ("2e nombre.")
MsgBox"La rep. est "&num&" .",vbinformation,"Calculatrice"
End If
'***************************************
If opt = deux then
'Soustraction
num = InputBox ("1er nombre.")
num = num -InputBox ("2e nombre.")
MsgBox"La rep. est "&num&" .",vbinformation,"Calculatrice"
End If
'***************************************
If opt = troi then
'Multiplication
num = InputBox ("1er nombre.")
num = num *InputBox ("2e nombre.")
MsgBox"La rep. est "&num&" .",vbinformation,"Calculatrice"
End If
'***************************************
If opt = quatre then
'Division
num = InputBox ("1er nombre.")
num = num /InputBox ("2e nombre.")
MsgBox"La rep. est "&num&" .",vbinformation,"Calculatrice"
End If
'***************************************
If opt = cinq then
'Pourcentage d'un nombre
argent = InputBox ("Nombre","Pourcentage d'un nombre.","")
pour = InputBox ("Pourcentage","Pourcentage d'un nombre.","")
pour = pour /100
argent = argent*pour
MsgBox"Le % de ce nombre est "&argent&" .",vbinformation,"Calculatrice"
End If
'***************************************
If opt = six then
'exposant
a = InputBox ("1er nombre.","Calculatrice","")
b = InputBox ("2e nombre.","Calculatrice","")
c = a^b
MsgBox""&a&" exp."&b&" = "&c&"",vbinformation,"Calculatrice"
End if
'***************************************
If opt = sept then
'Raçine Carré
a = InputBox ("Nombre dont tu veux extraire le raçine carré.","Calculatrice","")
b = a^0.5
MsgBox"La raçine carré du nombre "&a&" est "&b&".",vbinformation,"Calculatrice"
End If
'***************************************
If opt = huit then
End If
'***************************************
End If
'**********************************************************************
If com = deux then
'**********************************************************************
opt = InputBox ("Circonférance du cercle. (1), Aire du cerle. (2), Le rayon à partir de la circonférance (3), Le rayon à partir de l'aire (4), Retour (5)")
do while opt = rien
opt = InputBox ("Circonférance du cercle. (1), Aire du cerle. (2), Le rayon à partir de la circonférance (3), Le rayon à partir de l'aire (4), Retour (5)")
Loop
'*****************
If opt = un then
'*****************
'Circonférance
pie = 3.1416
rayon = InputBox ("Rayon")
rayon = 2 * rayon
circ = rayon * pie
MsgBox"La Circonférance est "&circ&" .",vbinformation,"Calculatrice"
End If
'*****************
If opt = deux then
'*****************
'Aire
pie = 3.1416
rayon = InputBox("Rayon")
rayon = rayon * rayon
aire = rayon * pie
MsgBox"L'air du cercle est "&aire&" .",vbinformation,"Calculatrice"
End If
'*****************
If opt = troi then
'*****************
'Le rayon à partir de la circonférance
pie = 3.1416
circ = InputBox ("Circonférance")
circ = circ /2
circ = circ /pie
rayon = circ
MsgBox"Le rayon est "&rayon&" .",vbinformation,"Calculatrice"
End If
'*****************
If opt = quatre then
'*****************
'Le rayon à partir de l aire
pie = 3.1416
aire = InputBox ("Aire")
aire = aire /pie
rayon = aire
a = rayon^0.5
MsgBox"Le rayon est "&a&" .",vbinformation,"Calculatrice"
End If
'*****************
If opt = cinq then
'*****************
End If
End If
'**********************************************************************
If com = troi then exit do
'**********************************************************************
Loop
Conclusion
Si vous voulez me proposer quelque chose ou m'écrire mon e-mail est crocodile306@hotmail.com
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
ASYNC/AWAIT: COMPRENDRE COMMENT CA MARCHEASYNC/AWAIT: COMPRENDRE COMMENT CA MARCHE par fathi
Tout le monde est unanime pour dire que la programmation multi-thread et asynchrone est en train de devenir un sujet incontournable. Beaucoup de choses sont arrivées avec le framework 4 pour le code parallèle (TPL, PLinq,.) et bientôt, on va avoir l...
Cliquez pour lire la suite de l'article par fathi PAS D'INTELLITRACE SUR MON SITE WEB DANS IIS !PAS D'INTELLITRACE SUR MON SITE WEB DANS IIS ! par Etienne Margraff
J'ai récemment eu un problème pour obtenir l'intelliTrace sur un site web dans IIS. Il n'y avait pas de message d'erreur, rien dans le journal d'évènement Windows, et après 3 appels à une voyante, 2 visites chez un marabou, j'ai failli me résign...
Cliquez pour lire la suite de l'article par Etienne Margraff OFFICE 365 - SHAREPOINT ONLINE, QUELQUES LIMITATIONSOFFICE 365 - SHAREPOINT ONLINE, QUELQUES LIMITATIONS par junarnoalg
De nombreuses entreprises font le choix de SharePoint Online, service fourni au travers de l'offre de Microsoft Office 365. S'il est vrai que ce choix apporte un grand nombre d'avantages; rapidité de mise en œuvre, disponibilité, large couvertu...
Cliquez pour lire la suite de l'article par junarnoalg PRéSENTATION DES API REST DE WINDOWS AZURE : LISTER LES COMPTES DE STORAGEPRéSENTATION DES API REST DE WINDOWS AZURE : LISTER LES COMPTES DE STORAGE par richardc
http://www.c2idotnet.com/articles/presentation-des-api-rest-de-windows-azure-lister-les-comptes-de-storage
Désolé pour "toto", mais c2i existait avant blogs.developpeur.org et c'est mon site "officiel" ;-) ...
Cliquez pour lire la suite de l'article par richardc
Logiciels
DocTranslate (V3.1.0.0)DOCTRANSLATE (V3.1.0.0)DocTranslate est un traducteur de document Microsoft Word, PowerPoint et Excel. Il permet d'autom... Cliquez pour télécharger DocTranslate Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System
|