Computer Science, asked by alekya4683, 7 months ago

write a programm to input an integer and print whether it is a single digit integer or double digit integer or three digit integer or more than 3 digit integer

Answers

Answered by belamkarshraddha
16
class Pro

public static void main(int a)
{
int a;
if(a>=0 && <=9)
System.out.println(“Single Digit”);

else if(a>=10 && <=99)
System.out.println(“Double Digit”);


else if(a>=100 && <=999)
System.out.println(“Triple Digit”);

else if(a>=1000)
System.out.println(“More than Triple Digit”);
}
}



Happy Learning:-)
Similar questions