# How to make an arrow with words on top in texstudio [duplicate]

This question already has an answer here:

I am new in TeXstudio editor and I want to add an arrow with words above to show a transition between two states. Something like the picture below.

How can I do that.

## marked as duplicate by Werner, user31729, user13907, moewe, MalipivoApr 10 '15 at 19:27

\documentclass{article}
$\xrightarrow{print(5)}$