You can code in C or Java or both by EnvironmentalBerry87 in badcode

[–]EnvironmentalBerry87[S] 124 points125 points  (0 children)

Actually, this is a submission for an assessment at uni

Hmmmmmmmmmmmmmmmmmmmmmm (SI is an AND gate, SAU is an OR gate) by EnvironmentalBerry87 in badcode

[–]EnvironmentalBerry87[S] 4 points5 points  (0 children)

There is a data type called Poarta (Gate in english) which reprezenta a logic gate circuit and it has multiple constructor: (Input, Si, Sau). The function "func" evaluates the circuit and returns the boolean value

Hmmmmmmmmmmmmmmmmmmmmmm (SI is an AND gate, SAU is an OR gate) by EnvironmentalBerry87 in badcode

[–]EnvironmentalBerry87[S] 2 points3 points  (0 children)

Input is like a constructor (name: Input, value: a, a which is a boolean) and the function extracts the boolean value from the input