Computer Science, asked by oindrilanandy64, 7 months ago

wap in java to accept a no. and check whether the no. is a unique no. or not.​

Answers

Answered by llɱissMaɠiciaŋll
14

Explanation:

To check if a number is a unique number or not

//A Unique number is a number in which no repeated digits are present e.g.1234 it is a unique number while 12113 is not a unique number. int n;int flag=1; Scanner in=new Scanner(System.in); ... n=no;//interchanging of numbers.

Answered by yogavamsi1999
1

Answer:

while statement is used.

okay.

Because it is exucting 2 statements.

and use else statement also because if first statement is wrong and second statement is write it's prints the correct statement in execution process when we use else statement.

Similar questions