5. Executing the flowchart shown in Figure 2, if the input is $n = 3$, then the output $S =$
A. $\frac { 6 } { 7 }$
B. $\frac { 3 } { 7 }$
C. $\frac { 8 } { 9 }$
D. $\frac { 4 } { 9 }$
[Figure]
Figure 2
5. Executing the flowchart shown in Figure 2, if the input is $n = 3$, then the output $S =$\\
A. $\frac { 6 } { 7 }$\\
B. $\frac { 3 } { 7 }$\\
C. $\frac { 8 } { 9 }$\\
D. $\frac { 4 } { 9 }$

\begin{figure}[h]
\begin{center}
  \includegraphics[alt={},max width=\textwidth]{a0f6867f-5746-4d26-8059-7cd4a91595fe-2_713_369_299_347}
\captionsetup{labelformat=empty}
\caption{Figure 2}
\end{center}
\end{figure}