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,...
October 27, 2023

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...
October 22, 2023

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), and the...
October 17, 2023

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...
October 12, 2023

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) rather than...
October 07, 2023

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...
October 02, 2023

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,...
September 26, 2023

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...
September 21, 2023

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...
September 16, 2023