English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

G = E OR D AND A + 8 <= B^2 MOD C
G = false OR true AND 6 + 8 <= 9^2 MOD 4 
G = false OR true AND 6 + 8 <= 81 MOD 4 
G = false OR true AND 6 + 8 <= 1 
G = false OR true AND 14 <= 1 
G = false OR true AND false 
G = true AND false 
G = false 

how do u get 1 after having G = false OR true AND 6 + 8 <= 81 MOD 4 

81 MOD 4 =????

2007-09-29 11:12:32 · 2 answers · asked by More-Love 2 in Computers & Internet Programming & Design

2 answers

mod is simply remainder
81/4= 20 remainder 1
mod or % gives out remainder
hence 1

2007-09-29 18:11:14 · answer #1 · answered by i_am_the_next_best_one 5 · 0 0

MOD is short for modulo, it means the same thing as remainder.

81 mod 4 = 1

To calculate M = I mod J in a programming language that has no modulo function:

Integer I, J, K, M

K = I/J ## integer truncation assumed #
M = I - (K*J)

2007-09-29 18:24:46 · answer #2 · answered by Computer Guy 7 · 0 0

fedest.com, questions and answers