Трудности с функцией if else

Трудности с функцией if else - Messaggi

#1 Pubblicato: 28/06/2021 06:07:21
Vasia

Vasia

0 apprezzamenti in 17 post.

Gruppo: User

Здравствуйте!
Необходимо, чтобы на выходе, если удовлетворяются условия, выводился массив чисел. В моем случае, выводится одно число из последнего условия, когда по исходным данным удовлетворяются все условия.
Подскажите пожалуйста, что я делаю не так.
File non trovato.File non trovato.
#2 Pubblicato: 28/06/2021 07:02:52
sergio

sergio

127 apprezzamenti in 342 post.

Gruppo: User

So it works but it is likely that there are better solutions
example_s.sm (9,9 KiB) scaricato 1175 volta(e).

sergio
#3 Pubblicato: 28/06/2021 07:05:53
Vasia

Vasia

0 apprezzamenti in 17 post.

Gruppo: User

Wrote

So it works but it is likely that there are better solutions
example_s.sm (9,9 KiB) scaricato 1175 volta(e).

sergio



Спасибо, но как раз от такой записи хотелось уйти)
#4 Pubblicato: 28/06/2021 08:40:43
Fridel Selitsky

Fridel Selitsky

520 apprezzamenti in 451 post.

Gruppo: User

The solution can be represented as a function of lambda
example Ber7.sm (14,32 KiB) scaricato 1224 volta(e).
#5 Pubblicato: 28/06/2021 11:16:12
Vasia

Vasia

0 apprezzamenti in 17 post.

Gruppo: User

Wrote

The solution can be represented as a function of lambda
example Ber7.sm (14,32 KiB) scaricato 1224 volta(e).



Спасибо!
#6 Pubblicato: 28/06/2021 12:06:05
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Hi. A couple of two more methods.

example.sm (19,48 KiB) scaricato 1200 volta(e).

Best regards.
Alvaro.
1 utenti hanno apprezzato questo post
sergio 28/06/2021 13:23:00
#7 Pubblicato: 28/06/2021 15:30:35
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Another way, with functions, like the Ber7 solution.

example_functions.sm (7,37 KiB) scaricato 1210 volta(e).

Best regards.
Alvaro.



#8 Pubblicato: 29/06/2021 02:29:45
Vasia

Vasia

0 apprezzamenti in 17 post.

Gruppo: User

Wrote

Hi. A couple of two more methods.

example.sm (19,48 KiB) scaricato 1200 volta(e).

Best regards.
Alvaro.



Спасибо, буду разбираться)
  • Nuovi post
  • Nessun nuovo post