Write a java program to display Fibonacci series

Write a java program to display Fibonacci seriesIn this program, Fibonacci series means to next number is the sum previous two numbers for example 0, 1, 1, 2,...
November 23, 2022

Java program to generate multiplication table

How to generate multiplication table in java?In this program, we will understand the logic to print table and also implement that logic in java programs.A table is a...
November 23, 2022

Java program to find factorial of a number

Write a java program to find factorial of a numberHere, we will used for loop to loop through all numbers between 1 and the given number num (10),...
November 20, 2022

java program to calculate the sum of natural numbers

Write a java program to calculate the sum of natural numbers using for loopThe natural numbers are the numbers that include all the positive integers from 1 to...
November 17, 2022

java program to check whether a character is alphabet or not

Write a java program to check whether a character is alphabet or notHere, the char variable stores the ASCII value of a character (number between 0 and 127)...
November 16, 2022

Java program to check whether a number is positive or negative

Write a java program to check if number is positive or negativeHere, we will write java program to checks whether the specified number is positive or negative using...
November 15, 2022

Write a java program to multiply two floating point numbers

Java program to multiply two floating point numbersIn the below program, we have two floating - point numbers 3.4f and 1.5f stored in variables first and second respectively.Notice,...
November 14, 2022

Java program to check leap year

Write a java program to check leap yearLeap year contains 366 days, which comes once every four years.Every leap year corresponds to these facts:A century year is a...
November 13, 2022

Java program to find all roots of a quadratic equation

Write a java program to find all roots of a quadratic equationThe standard form of an equation is:ax2+bx+c=0Here, a, b and c are real numbers and a can't...
November 12, 2022