In C programming, % is used to perform Modulo operation. Modulo operation finds remainder after division of one number by another (also called modulus). For example, 6%2 gives result as 0. And 5%2 gives result 1.
I understand that would work In real life but I have only started schooling in this and I am completely lost on how to show this in a new person view basically as simple as possible. We are suppose to use only subtraction to show our work. I can write a flowchart to show A - B. But not sure how to show a remainder.
Here lies my problem because we haven't learned the Modulo operation yet. And my teacher wouldn't accept my work if I put it in my algorithm. So what I'm wondering is there a way to show a remainder after two numbers have been subtracted. I'm sure there is but that's what I'm having trouble with and showing.
How would you do this to show a remaimder?
ReplyDeleteRemainder can be calculated using following statement:
DeleteAnswer = Number1 % Number2
How would you do this to show a remaimder?
ReplyDeleteHow remainder is calculated and used is shown at following URL:
DeleteOdd Even Flowchart
In C programming, % is used to perform Modulo operation. Modulo operation finds remainder after division of one number by another (also called modulus). For example, 6%2 gives result as 0. And 5%2 gives result 1.
DeleteI understand that would work In real life but I have only started schooling in this and I am completely lost on how to show this in a new person view basically as simple as possible. We are suppose to use only subtraction to show our work. I can write a flowchart to show A - B. But not sure how to show a remainder.
ReplyDeleteHere lies my problem because we haven't learned the Modulo operation yet. And my teacher wouldn't accept my work if I put it in my algorithm. So what I'm wondering is there a way to show a remainder after two numbers have been subtracted. I'm sure there is but that's what I'm having trouble with and showing.
ReplyDeleteThis comment has been removed by the author.
DeleteFlowchart to find remainder using subtraction is uploaded on following link.
DeleteFlowchart to find remainder using subtraction.
Flowchart to find remainder using subtraction is uploaded on following link.
DeleteFlowchart to find remainder using subtraction.
I advise you to follow this blog to get regular updates.
Enjoy ....
Yesss!very nice how I was needing I got it👍👍👍
ReplyDeleteHow to draw a flowchart to add
ReplyDeletetwo numbers
You can read the flowchart to add two numbers at following link: Flowchart to Add Two Numbers
DeleteHi can you please make pseudo code for ( take an integer input n and print n, it's square n² and it's cube n³)
ReplyDelete