# remainder of division

How to write that the remainder of 5 divided by 2 is 1

##### Tags:

##### Ashish Paliwal replied

use d = 5 mod 2 now d will hold the value 1

data : d type i.

d = 5 mod 2.

write: d.

Edited by: Ashish Paliwal on Sep 24, 2008 4:14 PM

Archived discussions are read-only. Learn more about SAP Q&A

How to write that the remainder of 5 divided by 2 is 1

use d = 5 mod 2 now d will hold the value 1

data : d type i.

d = 5 mod 2.

write: d.

Edited by: Ashish Paliwal on Sep 24, 2008 4:14 PM