RUNTIME ERROR
why i get runtime error ?
import java.util.Scanner;
class main {
static int Rev(int n){
int x=n;
int k,j=0;
while(x!=0){
k=x%10;
j=j*10+k;
x/=10;
}
return j;
}
static boolean isPrime(int n){
for(int i=2;i<=Math.sqrt(n);i++){
if(n%i==0){
return false;
}
}
return ...
Search found 2 matches
- Tue Jun 28, 2016 12:19 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10235 - Simply Emirp
- Replies: 150
- Views: 51672
- Tue Jun 28, 2016 12:18 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10235 - Simply Emirp
- Replies: 150
- Views: 51672
Re: 10235 - Simply Emirp
why i get runtime error?
import java.util.Scanner;
public class uv2a10235 {
static int Rev(int n){
int x=n;
int k,j=0;
while(x!=0){
k=x%10;
j=j*10+k;
x/=10;
}
return j;
}
static boolean isPrime(int n){
for(int i=2;i<=Math.sqrt(n);i++){
if(n%i==0){
return false;
}
}
return true ...
import java.util.Scanner;
public class uv2a10235 {
static int Rev(int n){
int x=n;
int k,j=0;
while(x!=0){
k=x%10;
j=j*10+k;
x/=10;
}
return j;
}
static boolean isPrime(int n){
for(int i=2;i<=Math.sqrt(n);i++){
if(n%i==0){
return false;
}
}
return true ...