Changes between Initial Version and Version 1 of Ticket #2483


Ignore:
Timestamp:
2013-11-15T17:56:50Z (11 years ago)
Author:
Martin Sjölund
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2483 – Description

    initial v1  
     1{{{#!mo
    12function add
    2 input Integer a;
    3 input Integer b;
    4 output Integer sum;
    5 output Integer subtract;
    6 output Integer multiply;
     3  input Integer a;
     4  input Integer b;
     5  output Integer sum;
     6  output Integer subtract;
     7  output Integer multiply;
    78algorithm
    8 sum:= a+b;
    9 if (a>b) then
    10 subtract:= a-b;
    11 else
    12 subtract:= b-a;
    13 multiply:= a*b;
    14 end if;
     9  sum:= a+b;
     10  if (a>b) then
     11    subtract:= a-b;
     12  else
     13    subtract:= b-a;
     14    multiply:= a*b;
     15  end if;
    1516end add;
    16 
     17}}}
    1718if i want to get just the multiplication part of the result then i did
    1819
    19 (,,mult) := add (3,4);
     20`(,,mult) := add (3,4);`
    2021
    2122Also, (add,sub):= add (3,4) works fine