193k views
5 votes
Simple array java problem of printing out students' names who got below average gpas

User Izhar
by
3.4k points

1 Answer

5 votes

Answer:script>

var emp=["Sanjay","Vimal","Ratan"];

for (i=0;i<emp.length;i++){

document.write(emp[i] + "<br/>");

}

</script>

Explanation:

From the above code given that the names of students that got below average gpas are Sanjay, Vimal andRatan the code would be...

script>

var emp=["names of students who got below average GPA"];

for (i=0;i<emp.length;i++){

document.write(emp[i] + "<br/>");

}

</script>

User Thomasfedb
by
4.3k points