{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

chap 4 notes 75 - 1 int n = 5 for(int k= 2 k<=n k...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
75 Example: Factorial Consider the following for loop: k nfact 2 2 nfact =
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 ; int n = 5 ; for (int k= 2 ; k<=n; k++) { nfact*=k; }...
View Full Document

{[ snackBarMessage ]}