Question: What is the best way to store 17 decimals (ex. 1.12345678901234567) in a column table in SQL server? 

Also which type should I use in C++ to be able to push these 17 decimals into the SQL Query?

Thanks

Answer: 
Both `j` loops are nested inside `i` equally, `k` is the inner most loop
I'd say that `k` is the inner-most loop, because if you count the number of loops required to reach it from the outside, it's three loops, and that's the most out of all four of the loops in your code.