DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Numbers — Example 21

Quick explanation + ready code for: Numbers.

Simula Numbers Back to examples
Back to language
Syntax: Numbers in Simula. ID: #21

Code

const a=7, b=8;
console.log("sum=", a+b, "mul=", a*b);

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.