Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
write a program to input a year example 1994 and check whether it is a leap year
Home
Education
write a program to input a year example 1994 and...
asked
Dec 6, 2021
in
Education
by
JackTerrance
write a program to input a year example 1994 and check whether it is a leap year Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 6, 2021
by
JackTerrance
Best answer
import java.util.Scanner; public class leap { public static void calc() { Scanner brainly=new Scanner(System.in); System.out.print(“Enter the year you want to check.”); int a=brainly.nextInt(); if(a%400==0) System.out.println(“The entered year is a leap year.”); else System.out.println(“The entered year is not a leap year.”); } } Originally answered by me at:
https://brainly.in/question/5848254
Related questions
0
votes
Q: write a program to input a year example 1994 and check whether it is a leap year
write a program to input a year example 1994 and check whether it is a leap year Select the correct answer from above options...
asked
Dec 5, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input a year example 1994 and check whether it is a leap year
write a program to input a year example 1994 and check whether it is a leap year Select the correct answer from above options...
asked
Nov 26, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input a number. check and display whether it is divisible by 100
write a program to input a number. check and display whether it is divisible by 100 Select the correct answer from above options...
asked
Dec 17, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program in Java to input any age and determine whether the age is valid or invalid. If age is greater than or equal to 18 then it is valid otherwise invalid.
Write a program in Java to input any age and determine whether the age is valid or invalid. If age is ... is valid otherwise invalid. Select the correct answer from above options...
asked
Dec 24, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to check whether the entered number is positive or negative or zero
write a program to check whether the entered number is positive or negative or zero Select the correct answer from above options...
asked
Dec 17, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Help neededPlease write a program to check whether a number is special number or not .
Help needed Please write a program to check whether a number is special number or not . 100 points Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: The world Trade Organization was established in the year (a) 1990 (b) 1991 (c) 1994 (d) 1995
The world Trade Organization was established in the year (a) 1990 (b) 1991 (c) 1994 (d) 1995 Select the correct answer from above options...
asked
Aug 3, 2022
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a script in python to check whether your age is “major” or “minor”
Write a script in python to check whether your age is “major” or “minor” Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input number and print wether it is even or odd.
write a program to input number and print wether it is even or odd. Select the correct answer from above options...
asked
Dec 21, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program in Java to input a number and print if it is a special number or not.
write a program in Java to input a number and print if it is a special number or not. do this program using ... nested and while loop . Select the correct answer from above options...
asked
Dec 1, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and print all palindrome words in the sentence present. Java class 10
write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and ... present. Java class 10 Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: 6. A business man wishes to accumulate 3000 shares of a company. However, healready has some shares of that company valuing * 10 (nominal value) whichyield 10% dividend per annum and receive 2000 as dividend at the end ofthe year. Write a program in Java to calculate the number of shares he has andhow many more shares to be purchased to make his target.
6. A business man wishes to accumulate 3000 shares of a company. However, he already has some shares of that ... 100/Nominal value*div% Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program which sends the name of a text file from the client to server and display the message on the client machine whether file present or not.
Write a program which sends the name of a text file from the client to server and display the message on the ... file present or not. Select the correct answer from above options...
asked
Dec 1, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers.
write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers. URGENT! Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input a number and print table of the number using while loop
write a program to input a number and print table of the number using while loop Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...