Quiz 6 Solution - int j; int s = {2,4,6,8,10,12}; while( k...

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

View Full Document Right Arrow Icon
Name: _____________________________ Quiz Six Indicate what this program will print out in the window at the bottom. [10 points] CIS 209 #include <stdio.h> int main() { int k = 6;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int j; int s = {2,4,6,8,10,12}; while( k &gt; 0 ) { j = k-1; while( j &lt; k ) { printf( &quot;%d\n&quot;, s[j] ); j = j + 1; } k = k - 2; } return 0; } 12 8 4...
View Full Document

Ask a homework question - tutors are online