MicroScript, often abbreviated as MUS and μs is a programming language created and developed by Cyril John Magayaga. It was originally written in Java programming language.
The following shows how a "Hello, World!" program is written in MicroScript programming language:
// "Hello, World!" program
console.write("Hello, World!");
The following shows how to the addition, substraction, multiplication, and division program using MicroScript programming language:
// Adding numbers
console.write(25 + 19);
// Subtracting numbers
console.write(36 - 14);
// Multiplying numbers
console.write(45 * 12);
// Dividing numbers
console.write(1028 / 16);
The following shows how a "Hello, World!" program with function is written in MicroScript programming language:
// Function to compute the "Hello, World!" program
function main() {
console.write("Hello, World!");
return 0;
};
main();
The following shows how a square function is written in MicroScript programming language:
// Function to compute the square
function square(number) {
return number * number;
}
// Main function
function main() {
console.write(square(14));
};
main();
Copyright (c) 2024 Cyril John Magayaga.