Java Program Example - Print Table of Number
Java Program Example - Print Table of Number
Java Program Example - Print Table of Number
import java.util.Scanner;
if(num%2 == 0)
{
System.out.print("This is an Even Number");
}
else
{
System.out.print("This is an Odd Number");
}
}
}
/* Java Program Example - Print Table of Number */
import java.util.Scanner;
while(num != 0)
{
rem = num%10;
rev = rev*10 + rem;
num = num/10;
}
System.out.print("Prime Numbers Between " + start + " and " +end+ " is
:\n");
for(i=start; i<=end; i++)
{
count = 0;
for(j=2; j<i; j++)
{
if(i%j == 0)
{
count++;
break;
}
}
if(count == 0)
{
System.out.print(i + " ");
}
}
}
}
big = a;
if(big<b)
{
if(b>c)
{
big = b;
}
else
{
big = c;
}
}
else if(big<c)
{
if(c>b)
{
big = c;
}
else
{
big = b;
}
}
else
{
big = a;
}