Answers for "auto correct code"

0

auto correct code

import java.util.*;
class Main {
    public static void main(String[]args){

        Scanner scanner = new Scanner(System.in);
        int age;

        System.out.println("Your age is:");
        age=scanner.nextInt();

        if (age<0)
        {
            
        }
        else if (age<2)
        {
            System.out.print("You are in TODDLER stage");
        }
        else if (age<18)
        {
            System.out.print("You are in TEENAGER stage");
        }
        else if (age>65)
        {
            System.out.print("You are in SENIOR CITIZEN stage");
        }
        else 
        {
            System.out.print("You are in ADULT stage");
        }
    }
}
Posted by: Guest on September-28-2021

Code answers related to "auto correct code"

Browse Popular Code Answers by Language