\documentclass[margin=2mm]{standalone}
\usepackage{tikz}
\newcommand{\test}[1]{%
\xdef\temp{}%
\foreach \i in {1,...,#1}
{%
\xdef\temp{\temp t\i \noexpand\cr}%
\cr}%
}%
\temp}
\begin{document}
IST:
\begin{tabular}{c}
\test{3}
\end{tabular}
SOLL:
\begin{tabular}{c}
t1 \\ t2 \\ t3 \\
\end{tabular}
\end{document}
[![alt text][1]][1]
[1]: https://texwelt.de/wissen/upfiles/Screen_Shot_2018-06-03_at_11.51.45_AM.png