Question: Write a short program in this language that contains one function, and has at least one input, one variable and one conditional expression. Show the

Write a short program in this language that contains one function, and has at least one input, one variable and one conditional expression. Show the output of that program on two different inputs. Here is an example of the kind of program that I am looking for: -- Simple Program with one function function main a: integer returns integer; b: integer is a * 2; begin if a <= 0 then b + b; else b * b; endif; end; If this program is run with an input of 3, it returns 36. If it is run with an input of -3, it returns -12.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!