Answer this with the dots connected. Why is it. You may ask? I bet it’s 40
Answer :
Written in java
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
int year;
Scanner scanner = new Scanner(System.in);
System.out.print("Please enter a year\n\n");
year = scanner.nextInt();
while (year < 1582) {
System.out.print("\nPlease enter a different year above 1582\n");
year = scanner.nextInt();
}
if (year % 4 == 0) {
if(year % 100 ==0 && year % 400 != 0){
System.out.println(year + " is not a leap year\n\n");
}else {
System.out.println(year + " is a leap year\n");
}
} else {
System.out.println(year + " is not a leap year\n\n");
}
}
}
Data set is the object that you can store data.
Answer:
Data type is an attribute of the data in the computer science. It basically guide the compiler and interpreter about the data utilization in the program. Data type basically define the operation, which can be done on given data.
There are different types of data types are as follow:
Integer data type: This type if data type basically represent the integer type of data value from largest to smallest order.
For example: int p = 10;
Real data type: This type of data type is used to represent the real type of number from largest to smallest range.
For example: float b = 17.6;