variable à multiples valeurs

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #213333 quote
    romaou
    Participant
    New

    Bonjour,

    Est il possible de reduire cette liste de valeur en une variable “mutliple”. Voici un représentation ainsi que l’objectif  de programmation:

    table1 = {5, 10, 12, 10, 5}

    for i =1 to 5 DO

    trace = table1[i] * low[i]

    next

    Cordialement,

    #213391 quote
    Nicolas
    Keymaster
    Legend

    Oui pour cela on utilise une variable en tableau (variable array), en reprenant ton exemple je stocke les valeurs dans le tableau $table01:

    $table1[0]=5
    $table1[1]=10
    $table1[2]=12
    $table1[3]=10
    $table1[4]=5
    // {5, 10, 12, 10, 5}
    
    for i = 0 to 4 DO
     trace = $table1[i] * low[i]
    next
    romaou thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

variable à multiples valeurs


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
romaou @romaou Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
3 years, 5 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/15/2023
Status: Active
Attachments: No files
Logo Logo
Loading...