Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // function prototypes
- void arrayProgram(double ma[][2], int xSize);
- int main()
- {
- const int arraySize = 5;
- double ma[arraySize][arraySize];
- arrayProgram(ma, arraySize);
- }//end main
- void arrayProgram(double ma[][2], int xSize)
- {
- int i = 0;
- for (i = 0; i < xSize; ++i)
- {
- ma[i][0] = rand();
- ma[i][1] = (ma[i][0] * (20 / 25.0) + 64);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement