プログラム

足し算プログラム

Jasmine Tea

function add(a, b)
  return a + b
end function

procedure output v
  print v
end procedure

let a = 1
let b = 2
call output add(a, b)

JavaScript

function add(a, b) {
  return a + b;
}

function output(v) {
  console.log(v);
}

const a = 1;
const b = 2;
output(add(a,b));

Python

def add(a, b):
    return a + b

def output(v):
    print(v)

a = 1;
b = 2;
output(add(a, b))