Quiz 6 Solution - int j int s ={2,4,6,8,10,12 while k> 0...

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 > 0 ) { j = k-1; while( j < k ) { printf( "%d\n", s[j] ); j = j + 1; } k = k - 2; } return 0; } 12 8 4...
View Full Document

This note was uploaded on 08/29/2011 for the course CIS 209 taught by Professor Aren during the Spring '11 term at Kansas State University.

Ask a homework question - tutors are online