Difference between revisions of "2022 Paper 1 Revision Quiz"
Line 24: | Line 24: | ||
{Look at this sample code: | {Look at this sample code: | ||
+ | <nowiki> | ||
public int Fact(int num) | public int Fact(int num) | ||
{ | { | ||
Line 31: | Line 32: | ||
return num * Fact(num-1); | return num * Fact(num-1); | ||
− | + | }</nowiki> | |
|type="()"} | |type="()"} | ||
</quiz> | </quiz> |