Skip to content

Commit baaee21

Browse files
Chapter 7 Practice Set Solutions
1 parent e979503 commit baaee21

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

35.Chapter_7_Practice_Set/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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.

0 commit comments

Comments
 (0)