write any program using nested if statement .its java program for computer
Answers
Answered by
0
Explanation:
java.util.scanner;
class a
{public static void main (string args)
{int num
scanner in = new scanner (system.in)
system.out.print.= (“enter your num”);
num= in. nextint();
if(num<=10)
{
system.out.print(“hello”)
{
else
{
if(num<=30)
{
system.out.print(“hay”)
{
else
{
system.out.print(“bye”)
}
Similar questions