Computer Science, asked by abhishek330negi2000, 1 year ago

Java program to accept two integers and print all the number between them

Answers

Answered by estherroyin
2

Zoom the pic .So you can see clearly


Attachments:

abhishek330negi2000: thnks a lot :-)
estherroyin: Your welcome
abhishek330negi2000: yup..i have another query....can you answer it..?
estherroyin: yea sure i will. try
abhishek330negi2000: a program to accept a string and count number of vowels,consonent and spaces in the string and also find no. of words in it..
estherroyin: add it as a question...so that i can send the image of prgm
abhishek330negi2000: oky
abhishek330negi2000: wait for a sec.
abhishek330negi2000: have you tried it ...??
estherroyin: i coudnt find the question
Answered by mpd20700
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