0% found this document useful (0 votes)
29 views

Java Programming I Assignment 4

The document lists 12 programming assignments for a Java Programming I course. The assignments include writing programs to calculate the factorial of a user-input number, print sums and averages of natural numbers, print odd numbers up to the 20th term, reverse a number, generate multiplication tables and Fibonacci sequences, check for prime numbers, generate prime series, display cubes and harmonic series, sum series of increasing numbers, and display sums of squared natural numbers.

Uploaded by

sajan gc
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Java Programming I Assignment 4

The document lists 12 programming assignments for a Java Programming I course. The assignments include writing programs to calculate the factorial of a user-input number, print sums and averages of natural numbers, print odd numbers up to the 20th term, reverse a number, generate multiplication tables and Fibonacci sequences, check for prime numbers, generate prime series, display cubes and harmonic series, sum series of increasing numbers, and display sums of squared natural numbers.

Uploaded by

sajan gc
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Java Programming I Assignment 4

1. Write a program to find factorial of user input number


2. Write a program to print sum and average of natural number up to nth term.
3. Write a program to print odd number up to 20th term
4. Write a program to print the given number in reverse order e.g:- 1234 to 4321
5. Write a program to generate multiplication table of user input number
6. Write a program to generate Fibonacci series up to nth term e.g:- 1,2,3,5,8,13……… nth term
7. Write a program to check whether the given number is prime or not.
8. Write a program to generate prime series up to nth term
9. Write a program to display cube of number up to nth term
10. Write a program to display harmonic series and their sum e.g:- 1 + ½ + 1/3 + ¼ + 1/5 ……nth term
11. Write a program to display sum of series 9 + 99 + 999 + 9999 + 99999 …. nth term
12. Write a program to display nth terms of square natural number and their sum.

You might also like