Untitled
unknown
plain_text
2 years ago
165 B
4
Indexable
for(int i =1;i<=10;i++){ int cnt = 0; for(int j =1;j<=Math.sqrt(i);i++){ if(i%j==0){ cnt++; } if(cnt>1)System.out.println(i); } }
Editor is loading...
for(int i =1;i<=10;i++){ int cnt = 0; for(int j =1;j<=Math.sqrt(i);i++){ if(i%j==0){ cnt++; } if(cnt>1)System.out.println(i); } }