Skip to content

Latest commit

 

History

History

35.Chapter_7_Practice_Set

Java Tutorial: Practice Questions on Java Methods

  1. Write a Java method to print the multiplication table of a number n.
  2. Write a program using functions to print the following pattern:
*
**
***
****
  1. Write a recursive function to calculate the sum of first n natural numbers.
  2. Write a function to print the following pattern:
****
***
**
*
  1. Write a function to print the nth term of the Fibonacci series using recursion.
  2. Write a function to find the average of a set of numbers passed as arguments.
  3. Repeat problem 4 using Recursion.
  4. Repeat problem 2 using Recursion.
  5. Write a function to convert Celsius temperature into Fahrenheit.
  6. Repeat problem 3 using an iterative approach.