Skip to content

Commit 817de9c

Browse files
authored
Update JavaArray02.txt
1 parent 37024a5 commit 817de9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JavaArray02.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*Write a java program that takes 2 integer numbers as input and calculates how many prime numbers exist between them.*/
22

33
import java.util.Scanner;
4-
public class Task02{
4+
public class JavaArray02{
55
public static void main(String[]args){
66
Scanner sc=new Scanner(System.in);
77
int n1= sc.nextInt();
@@ -25,4 +25,4 @@ import java.util.Scanner;
2525
count++;}}}
2626
System.out.println("There are "+count+" prime numbers between "+ n1+" and "+n2);
2727
}
28-
}
28+
}

0 commit comments

Comments
 (0)