Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Linear Seach
//created by Yeronazavr import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) {int count=0; int arr[]={10, 20, 80, 30, 60, 50, 110, 100, 110, 170}; for(int i=0;i<10;i++){ if(arr[i]==110 ){ count=count+arr[i]; System.out.println(i); } } if(count==0){System.out.println("Element x is not present in arr[]");} } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
SecToHours
twelveDays
Word Destructor
3.A
exp 1
Find Case Combinations of a String
Qu1java.java
JavaScript on Java's System.out.println()
test1
Num ways to decode a string -Facebook interview
Please log in to post a comment.