Page 1 of 1

Afficher mon operation

Unread postPosted: 06 Dec 2005, 18:00
by foxel7
salut les gars voila

input a
input b
a+b store l
disp l

comment afficher loperation a+b ds mon ecran I/O

Re: Afficher mon operation

Unread postPosted: 07 Dec 2005, 08:00
by Artefact
Ouh quelle bête :#gni#:

Re: Afficher mon operation

Unread postPosted: 20 Sep 2008, 20:26
by natha
il faut convertir les variables a et b en chaine si tu veux que ça marche:
string(a)"+"string(b)

Re: Afficher mon operation

Unread postPosted: 20 Sep 2008, 20:44
by Bisam
Soyons encore plus complet :

Code: Select all
Disp string(a)" + "string(b)" = "string(a+b)


Les symboles servent à concaténer 2 chaînes de caractères (à les coller, si tu préfères).
Les espaces autour de + et de = rendent le résultat plus lisible.