Mod


 
Thread Tools Search this Thread
Top Forums Programming Mod
# 1  
Old 12-08-2005
Mod

I try to use mod(a,b) in a program but i cant
Please help me
# 2  
Old 12-08-2005
C has a mod operator: % just use that. Note the similarity to / for division...

int quot remain;
quot=101/5;
remain=101%5;
# 3  
Old 12-14-2005
thank so much
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Need help with MOD Disk copying

Hello, we are running Irix 6.5 on our octane/sgi computers - these computers come with an external Sony MOD drive attached via a scsi cable. We have backed info to 2.3 gig MOD disks over the years and woule like to duplicate the MOD's. I believe there are 3 ways to do this: add a second... (1 Reply)
Discussion started by: drew_holm
1 Replies

2. Shell Programming and Scripting

mod on %RANDOM

I use %random to generate random number but i want to mod it so i get random number below 50 only in ksh script how can i do it x=random % 50 doesn't work help is appreciated. Is there any other way i get generate random number below 50 in ksh.any other function. Plz provide an example... (4 Replies)
Discussion started by: er_zeeshan05
4 Replies
Login or Register to Ask a Question