Program to check whether it is prime or not and also that the number is fibonacci or not
Answers
Answered by
0
class abc
{
public static void main(String args[])
{
int prime=5;
if(prime%1==0&&prime%5==0)
{
System.out.prinltn("prime");
}
else
{
System.out.prinltn("not prime");
}
}
}
Similar questions