Write a Java program to store the marks of 10 students in Computer. (ARRAY)


+ 1

import java.util.*;
public class marks_10 {
public static void main(String[] args) {
Scanner sc = new Scanner (System.in);
System.out.println("ENTER MARKS OF ten (10) STUDENTS : ");
int marks[]= new int[10];
for(int i=0;i<10;i++){
System.out.print("MARKS ");
marks[i]=sc.nextInt();
System.out.println(" : "+marks[i]);
}
}

For CODE : CLICK ➡ https://onecompiler.com/java/3yqgn2bh3 (TO FIND OUTPUT)

BY : 🔴ONE THOUGHT TECHNOLOGY🔴