- #1
ming2194
- 32
- 0
im the very beginner of learning c programe so i would like to ask the follow questions and hope someone can give me some idea::
i know:
3%2 = 1
8%3 = 2
12%4 = 0
but I am not sure about the followings (or my concept is wrong or right):
12%100 = 12
1%2 = 1
can i say when the number after "%" is larger then the number before "%", the ans is equal to the formar number?
how about (-ve)%(+ve) or (+ve)%(-ve) or (-ve)%(-ve) ?
rly cannot get idea.
*it's not homework and it's just created by myself
i know:
3%2 = 1
8%3 = 2
12%4 = 0
but I am not sure about the followings (or my concept is wrong or right):
12%100 = 12
1%2 = 1
can i say when the number after "%" is larger then the number before "%", the ans is equal to the formar number?
how about (-ve)%(+ve) or (+ve)%(-ve) or (-ve)%(-ve) ?
rly cannot get idea.
*it's not homework and it's just created by myself