You Have To Use “is” Instead Of “=” In Prolog When It Comes To Applying Calculation Logic in Prolog
“=” triggers unification in Prolog
“is” triggers arithmetic evaluation in Prolog