Computer Science, asked by shindesamruddhi424, 11 months ago

pls solve the program using Java .....​

Attachments:

Answers

Answered by arthakskujur
1

Answer:

import java.util.*;

class abc

{

void main()

{

Scanner ob= new Scanner(System. in);

System. out.println("Enter the range ");

int m= ob.nextInt();

int n= ob.nextInt();

System. out.println("The numbers are :: ")

while(m<=n)

{

if(m/10 == m%10) // 'm/10' for first digit and

{ // 'm%10' for last digit.

System.out.print(m + " ");

}

m++;

}

}

}

Similar questions