Common algorithms

January 10, 2024 antony 0

NOTE: You do not have to “memorise” the code examples below, but you must be able to understand what each line of code does! You […]

Good programming practice

January 10, 2024 antony 0

Validate input before processing All inputs to a program should be validated for correctness before they are used in further processing to prevent runtime or […]

Different types of operators

January 10, 2024 antony 0

Arithmetic operators +, -, *, /, % Arithmetic operators perform common mathematical operations on values. ‘%’ is for modulo (remainder after division). Example: 5 % […]