From cdf8b382c36538771e16a0647b88d3da239a59f7 Mon Sep 17 00:00:00 2001 From: sash2501 Date: Thu, 24 Oct 2019 21:32:21 +0530 Subject: [PATCH] commit middle.java for issue #132 --- middle.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 middle.java diff --git a/middle.java b/middle.java new file mode 100644 index 0000000..3e50ff7 --- /dev/null +++ b/middle.java @@ -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