EnterQuiz

EnterQuiz - grades[quiznum] = grade ; quiznum = IO.readInt(...

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

View Full Document Right Arrow Icon
public class EnterQuiz{ public static void main(String[ ] args){ int[ ] grades = new int[10]; for(int i=0; i<10; i++){ grades[i]=0; } int quiznum = IO.readInt( ); while (quiznum>=0){ int grade = IO.readInt( );
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: grades[quiznum] = grade ; quiznum = IO.readInt( ); } System.out.println(" "); for(int i=0; i<10; i++){ System.out.println(i + " " + grades[i]); } } }...
View Full Document

This note was uploaded on 07/12/2009 for the course CS 111 taught by Professor Hari during the Fall '08 term at Rutgers.

Ask a homework question - tutors are online