Skip to content

Commit 82808fa

Browse files
committed
Create problem27.java
1 parent 821ba66 commit 82808fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

problem27.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
By Lakshmi Narayana V, EIE
3+
*/
4+
5+
public class notpresent {
6+
7+
/** * @param args */public static void main(String[] args) { Scanner s=new Scanner(System.in); int n=s.nextInt(); int arr[]=new int[n]; for(int i=0;i<n;i++) arr[s.nextInt()-1]=1; for(int i=0;i<n;i++) if(arr[i]==0) System.out.println(i+1);}}

0 commit comments

Comments
 (0)