Current OUTPUT:
on running this program the data is exported, but every value from arr[i][j] is written in a first column of new row. Like:
1
2
2
16
1
3
2
Desired OUTPUT:
1 2
2 16 1 3 5
3 2
Your topic title states that you want to export the file as a CSV (Comma Separated Values) file yet I see no commas in your desired output.
But in any case if you don't want the values on their own lines why are you printing a new line every time you print a number, wouldn't a space or a comma be a better idea?
What happens if your array is smaller than that "magic number" (655)?
hi
initially in my program i have imported data from excel file and done the desired calculations, now the output is stored in the array 'arr', i have to export this array 'arr' to an excel file,
in my current program the values of each row of the array is exported in a new columm to an excel file, hence the exported data in not useful,
i have to export the array as it is in the excel file.