I have a function that return a results, here is the results:
3.98901669117011 vm
0.138912911874081 nvm
2.30800830234368 hg
1.13724811900026 ms
2.33557467785177 ls
90.0912392977601 none
I want the words to be in the top of the table, and the numbers in the rows, and in the sides some string, here is an example:

How can I create a table in C# and write to it what I wrote?
If you need to open the exported file in Excel, you could simply save a CSV file. The first line would have the column names the rest of the lines would be the data rows.
The following code will write a CSV file that can be opened in Excel. It will look just like your image.