Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~166 People Reached
Favorite Forums
Favorite Tags
java x 1
Member Avatar for shishir365

import java.util.*; class nw { int dis(int p) { int c=0,flag=0; for(int j=1;j<=p;j++) { if(p%j==0) c++; } if(c==2) return 1; } void hui() { int c; int p,q; Scanner sc=new Scanner(System.in); System.out.println("range p"); p=sc.nextInt(); System.out.println("range q"); q=sc.nextInt(); for(int i=p;i<=q;i++) { c=dis(i); if(c==1) { System.out.println(i); }}}} {it says missing return statement! …

Member Avatar for stultuske
0
165