Skip to content

Commit

Permalink
commit middle.java for issue ShivangiSingh17#132
Browse files Browse the repository at this point in the history
  • Loading branch information
sash2501 committed Oct 24, 2019
1 parent 7da8cd2 commit cdf8b38
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions middle.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import java.util.*;
public class middle{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.println("\nEnter the starting number");
int a= in.nextInt();
System.out.println("\nEnter the ending number");
int b= in.nextInt();
System.out.println("\nThe even numbers are:");
for(int j=a+1;j<b;j++)
{if(j%2==0)
System.out.print(j+" ");
}

}
}

0 comments on commit cdf8b38

Please sign in to comment.