Program to Print Fibonacci Series upto nth value
Code: import java.util.Scanner ; public class fibonacci { public static void main (String args[]) { Scanne…
Code: import java.util.Scanner ; public class fibonacci { public static void main (String args[]) { Scanne…
Code: public class Main { public static int isHappyNumber(int num){ int rem = 0, sum = 0; …
Code: public class Main { //calculateLength() will count the digits present in a number public static int ca…
Code: import java.util.Scanner; public class Main { public static void main(String args[]) { int…
What is Perfect Number? A number whose sum of factors (excluding the number itself) is equal to the number is called a …
1) Using While Loop Code: import java . util .*; class Main { public static void main ( String args [])…
In mathematics, if the sum of its digits recursively is calculated till a single digit. If the single digit is 1 then the …
What is Armstrong Number? An Armstrong number is a positive n-digit number that is equal to the sum of the n th powers o…
Code: import java . util . Scanner ; public class Pr43 { public static void main ( String [] args ) …
Our website uses cookies to improve your experience. Learn more
Ok