\documentclass{article}
\begin{document}
\begin{verbatim}
#include <stdio.h>
int main (void)
{
int T1, T2, T3, T4;
int tomadas;
int notebooks;
scanf("%i %i %i %i", &T1, &T2, &T3, &T4);
tomadas = T1 + T2 + T3 + T4;
notebooks = tomadas - 3;
printf("%i\n", notebooks);
return 0;
}
\end{verbatim}
\end{document}