{}
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
run-icon
Main.java
import java.util.Scanner; class HelloWorld { public static void main(String[] args) { Scanner sc =new Scanner(System.in); System.out.print("enter the size of array="); int n=sc.nextInt(); System.out.print("enter the marks of students="); int arr[]= new int[n]; for(int i=0; i<=n-1; i++){ arr[i]=sc.nextInt(); } for(int i=0; i<=n-1; i++){ if(arr[i]<35) System.out.println("roll no. is="+i+" "); } } }
Output