chap 4 notes 77 - Consider the following for loop k nfact 3...

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

View Full Document Right Arrow Icon
77 nfact = 1 ; int n = 5 ; for (int k= 2 ; k<=n; k++) { nfact*=k; } Example: Factorial
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Consider the following for loop: k nfact 3 2...
View Full Document

This note was uploaded on 11/16/2011 for the course COP 2271 taught by Professor Staff during the Fall '11 term at University of Florida.

Ask a homework question - tutors are online