Computer Science, asked by krbiru1985, 11 months ago

Write a programme to input a number and check weather it is SPY number or not.



solve this by using : Scanner class in java

Answers

Answered by wwwsahuumang78
2

Answer:

Explanation:

import java.util.*;

public class anu

{

public static void main()

{

Scanner in=new Scanner (System.in);

int a;

double d;

if(a*a=d&&a+a=d)

{

S.O.Pln(SPY number);

}

else

{

S>O>Pln(not a spy number);

}

}

}

Similar questions