File tree 1 file changed +24
-0
lines changed
35.Chapter_7_Practice_Set
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Java Tutorial: Practice Questions on Java Methods
2
+
3
+ 1 . Write a Java method to print the multiplication table of a number n.
4
+ 2 . Write a program using functions to print the following pattern:
5
+ ```
6
+ *
7
+ * *
8
+ * * *
9
+ * * * *
10
+ ```
11
+ 3 . Write a recursive function to calculate the sum of first n natural numbers.
12
+ 4 . Write a function to print the following pattern:
13
+ ```
14
+ ****
15
+ ***
16
+ **
17
+ *
18
+ ```
19
+ 5 . Write a function to print the nth term of the Fibonacci series using recursion.
20
+ 6 . Write a function to find the average of a set of numbers passed as arguments.
21
+ 7 . Repeat problem 4 using Recursion.
22
+ 8 . Repeat problem 2 using Recursion.
23
+ 9 . Write a function to convert Celsius temperature into Fahrenheit.
24
+ 10 . Repeat problem 3 using an iterative approach.
You can’t perform that action at this time.
0 commit comments