Arithmetic/Rational/C sharp: Difference between revisions
Content added Content deleted
m (moved Rational Arithmetic/C sharp to Arithmetic/Rational/C sharp: moved to match other Rational Arithmetic subpages) |
m (prepare for inclusion as template) |
||
Line 1: | Line 1: | ||
{{collection|Rational Arithmetic}} |
<noinclude>{{collection|Rational Arithmetic}}</noinclude> |
||
<lang csharp>using System; |
<lang csharp>using System; |
||
Line 175: | Line 175: | ||
#endregion |
#endregion |
||
}</lang> |
}</lang> |
||
Test program: |
Test program: |
||
<lang csharp>using System; |
<lang csharp>using System; |
||
Line 202: | Line 201: | ||
} |
} |
||
}</lang> |
}</lang> |
||
{{out}} |
|||
Output: |
|||
<pre>6 is perfect |
<pre>6 is perfect |
||
28 is perfect |
28 is perfect |