wap in java to input an integer and print if it is a 1 or 2 or 3 or more digit number
Answers
Answered by
0
class abc
{
void main(int x)
{
if(x==1 || x==2 || x==3)
System.out.println("X="+x);
}
}
{
void main(int x)
{
if(x==1 || x==2 || x==3)
System.out.println("X="+x);
}
}
aditya2020222003:
the code is not giving proper result
Similar questions