[Tex/LaTex] How to divide two values in LaTex

programming

I need to divide two values in LaTex,

\newcommand{\x}{30}
\newcommand{\y}{10}


Is there a simple way to do this? i.e

x / y = 3


Preferably not using external packages, or a long winded \newcommand function. It needs to be as simple as possible. Also I may need to divide floats by integer values.

\documentclass{scrartcl}