954,092 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

problem relating to c program....

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

xyz329
Newbie Poster
1 post since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

Use the rand() function make sure you seed it.

Then fill the 4 x 4 array with these numbers.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: