Reset author name to chosen name

This commit is contained in:
2025-10-19 21:55:26 -05:00
parent a3e71f9673
commit 03c2474f78
1825 changed files with 8916 additions and 8921 deletions

View File

@@ -0,0 +1,27 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package programmingexam1_chloefontenot;
import java.util.Scanner;
/**
*
* @author ar114
*/
public class LeapYear {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter a year: ");
int year = input.nextInt();
// Check if the year is a leap year
boolean isLeapYear
= ((year % 4 == 0) && (year % 100 != 0 )|| (year % 400 == 0));
// Display the result
System.out.println(year + " is a leap year? " + isLeapYear);
}
}