Skip to content

[Proposal] OddEven #225

@rnkraj05

Description

@rnkraj05

Request Issue

No response

Website Section

No response

Proposal Details

import java.util.Scanner;

public class oddeven {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter Number: ");
int n = sc.nextInt();

    if(n % 2 == 0){
        System.out.println("Even Number");
    }
    else{
        System.out.println("Odd Number");
    }
    sc.close();
}

}

Author References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions