From 5e7302dba3d444c9b9884a1587cebf4ae013831a Mon Sep 17 00:00:00 2001 From: samarakoonsach <91709729+samarakoonsach@users.noreply.github.com> Date: Sat, 2 Oct 2021 14:42:18 +0530 Subject: [PATCH] Create Id_Sorting.java --- Arrays/Id_Sorting.java | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Arrays/Id_Sorting.java diff --git a/Arrays/Id_Sorting.java b/Arrays/Id_Sorting.java new file mode 100644 index 0000000..70b87d8 --- /dev/null +++ b/Arrays/Id_Sorting.java @@ -0,0 +1,32 @@ + +import java.util.Arrays; +import java.util.Scanner; + +public class Three{ + + public static void main(String args[]){ + + int arr[]= new int[10]; + int count=0; + + Scanner sc = new Scanner(System.in); + + System.out.println("Enter marks"); + + + for(int i=0; i<10; i++){ + + arr[i]= sc.nextInt(); + } + + for(int j=0; j<10; j++){ + + if(arr[j]>=85){ + count++; + } + } + + System.out.println("count="+count); +} + +}