A PHP Error was encountered

Severity: Warning

Message: mkdir(): Permission denied

Filename: drivers/Session_files_driver.php

Line Number: 137

Backtrace:

File: /home/estarbk/public_html/dev.estar-bk.com/application/controllers/Main.php
Line: 8
Function: __construct

File: /home/estarbk/public_html/dev.estar-bk.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Failed to initialize storage module: user (path: /var/cpanel/php/sessions/alt-php74)

Filename: Session/Session.php

Line Number: 137

Backtrace:

File: /home/estarbk/public_html/dev.estar-bk.com/application/controllers/Main.php
Line: 8
Function: __construct

File: /home/estarbk/public_html/dev.estar-bk.com/index.php
Line: 315
Function: require_once

E-STAR - Student
E-Lecture - Properties of modulo operator

In this section, we will see four basic properties of modulo and verify using example.

Property 1: If the value of A is increased by a multiple of B (say, kB, where k is any integer), then

A mod B = (A + kB) mod B; where k is any integer.

Property 2: Addition property of modulo arithmetic: If A, B and C are positive integers, then

(A + B) mod C = (A mod C + B mod C) mod C

Property 3: Subtraction property of modulo arithmetic: If A, B and C are positive integers, then

(A - B) mod C = (A mod CB mod C) mod C

Property 4: Multiplication property of modulo arithmetic is if A, B and C are positive integers, then

(A × B) mod C = (A mod C × B mod C) mod C.