import java.util.Scanner;
public class array3 {
public static void main(String args[]){
Scanner input=new Scanner(System.in);
int array[] = { 76, 89, 150, 200, 135, 76, 12, 100, 150, 28,
178, 189, 167, 200, 175, 150, 87, 99, 129,
149, 176, 200, 87, 35, 157, 189};
for ( int cnt = 0; cnt <= array.length; cnt++ )
{
int num;
System.out.print("Enter score of students:");
num=input.nextInt();
if ( cnt == 200 )
System.out.println( array[cnt] );
else
System.out.printf( "%02d-%02d ",
cnt * 25, cnt * 25 + 24);
System.out.println();
}
}
}
No comments:
Post a Comment