Bonsoir

Vous voulez de l'aide ? Postez ici :)
Post Reply
jean
Posts: 5
Joined: 22 May 2017, 15:44

Bonsoir

Post by jean »

Var x =5;
Avec une boucle ça donne la variable x = 10,15,20,25,35
Comment on fait ça en code Javascript svp?
francois
Posts: 456
Joined: 18 Oct 2010, 10:33
Location: France

Re: Bonsoir

Post by francois »

Bonsoir,

Code: Select all

for (x = 10; x <= 35; x=x+5) {
Console.print(x);
}
jean
Posts: 5
Joined: 22 May 2017, 15:44

Re: Bonsoir

Post by jean »

Merci pour votre aide
L'idée c'est d'additionné les futurs valeurs de la variable x.
Comment faire svp?
Post Reply