Java program to accept two integers and print all the number between them
Answers
Answered by
2
Zoom the pic .So you can see clearly
Attachments:
abhishek330negi2000:
thnks a lot :-)
Answered by
0
Answer:
import java.util.*;
class numbers
{
public static void main(String[]args)
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter the starting value");
int start=sc.nextInt();
System.out.println("Enter the edning value");
int end=sc.nextInt();
for(int i=start+1;i<end;i++)
{
System.out.println(i);
}
}
}
Similar questions
Hindi,
6 months ago
Math,
6 months ago
Chemistry,
11 months ago
Social Sciences,
11 months ago
Biology,
1 year ago