How to solve this problem? 4 + 17 % 2 - 1
Favorites|Homepage
Subscriptions | sitemap
HOME > > How to solve this problem? 4 + 17 % 2 - 1

How to solve this problem? 4 + 17 % 2 - 1

[From: ] [author: ] [Date: 12-01-29] [Hit: ]
,17 / 2 = 8 R1,......
It's a problem for my computer science course. The answer given is 4, but how do you get that answer? I don't understand what the % means in this case.

-
% mean "modulus" (usually abbreviated to "mod")

mod means divide to get the integer answer with remainder, and use the remainder, i.e.,

17 / 2 = 8 R1, so 17 % 2 = 1

-
17 % 2 means 17 mod 2 which is equal to 1;

4 + 17 % 2 - 1

= 4 + 1 - 1

= 4
1
keywords: solve,to,problem,How,17,this,How to solve this problem? 4 + 17 % 2 - 1
New
Hot
© 2008-2010 http://www.science-mathematics.com . Program by zplan cms. Theme by wukong .