Java Series Programs
Java Iterative Stmts
Write a program in Java to display the first 10 terms of the following series:
10, 20, 30, 40, ……..
View Answer296 Likes
Java Iterative Stmts
Write the program in Java to display the first ten terms of the following series:
1, 4, 9, 16,
View Answer337 Likes
Java Iterative Stmts
Write a program in Java to find the sum of the given series:
S = a2 + a2 / 2 + a2 / 3 + …… + a2 / 10
View Answer224 Likes
Java Iterative Stmts
Write a program in Java to find the sum of the given series:
S = a + a2 / 2 + a3 / 3 + …… + a10 / 10
View Answer102 Likes
Java Iterative Stmts
Write a program in Java to find the sum of the given series:
x - x2/3 + x3/5 - x4/7 + …. to n terms
View Answer116 Likes
Java Iterative Stmts
Using switch statement, write a menu driven program for the following:
(a) To find and display the sum of the series given below:
S = x1 - x2 + x3 - x4 + x5 - ………… - x20; where x = 2
(b) To display the series:
1, 11, 111, 1111, 11111
For an incorrect option, an appropriate error message should be displayed.
View Answer284 Likes
Java Iterative Stmts
Write the program in Java to display the first ten terms of the following series:
1, 2, 4, 7, 11,
View Answer281 Likes
Java Nested for Loops
Write a program to compute and display the sum of the following series:
S = (1 + 2) / (1 * 2) + (1 + 2 + 3) / (1 * 2 * 3) + -------- + (1 + 2 + 3 + ----- + n ) / (1 * 2 * 3 * ----- * n)
View Answer158 Likes
Java Nested for Loops
Write a program in Java to find the sum of the given series:
S = 1! + 2! + 3! + …. + n!
View Answer63 Likes
Java Nested for Loops
Write a program in Java to input the values of x and n and print the sum of the following series:
S = 1 + (x+2)/2! + (2x+3)/3! + (3x+4)/4! + ……… to n terms
View Answer56 Likes
Showing 1 - 10 of 63 Questions