problem relating to c program....

Reply

Join Date: Apr 2007
Posts: 1
Reputation: xyz329 is an unknown quantity at this point 
Solved Threads: 0
xyz329 xyz329 is offline Offline
Newbie Poster

problem relating to c program....

 
0
  #1
Apr 15th, 2007
would you please help me on c program?
my problem is how to arrange 100 numbers randomly in 4*4 cells
how can we find the output like
cell no of particles
1 7 9 34
2 23 87
.
.
.
16 90 76 53 70
i will be grateful if u assist me on this
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: problem relating to c program....

 
0
  #2
Apr 15th, 2007
Use the rand() function make sure you seed it.

Then fill the 4 x 4 array with these numbers.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC