Skip to content

Commit 63d26eb

Browse files
Merge pull request kunal-kushwaha#153 from GowthamPB/main
Updated 2-first-java.md
2 parents 8e0685d + dd45631 commit 63d26eb

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

assignments/2-first-java.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@
22

33
## Write Java programs for the following:
44

5-
1. Write a program to print factorial of a number, also take input.
6-
2. Write a program to print whether a number is even or odd, also take
5+
1. Write a program to print whether a number is even or odd, also take
76
input.
8-
3. Take name as input and print a greeting message for that name.
9-
4. Write a program to input principle, time and rate (P, T, R) from user and
7+
2. Take name as input and print a greeting message for that name.
8+
3. Write a program to input principle, time and rate (P, T, R) from user and
109
find Simple Interest.
11-
5. Take in two numbers and an operator (+, -, *, /) and calculate the value.
10+
4. Take in two numbers and an operator (+, -, *, /) and calculate the value.
1211
(Use if conditions)
13-
6. Take 2 numbers as input and print the largest number.
14-
7. Input a number and print all the factors of that number (use loops).
15-
8. Input currency in rupee and output in dollar.
16-
9. Take integer inputs till the user enters 0 and print the sum of all numbers
17-
(HINT: while loop)
18-
10. Take integer inputs till the user enters 0 and print the largest number from
19-
all.
12+
5. Take 2 numbers as input and print the largest number.
13+
6. Input currency in rupee and output in dollar.
14+

assignments/3-conditionals-loops.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
20. Total Surface Area Of Cube
2525
21. Fibonacci Series In Java Programs
2626
22. [Subtract the Product and Sum of Digits of an Integer](https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/)
27+
23. Input a number and print all the factors of that number (use loops).
28+
24. Take integer inputs till the user enters 0 and print the sum of all numbers
29+
(HINT: while loop)
30+
25. Take integer inputs till the user enters 0 and print the largest number from
31+
all.
2732

2833
### Intermediate Java Programs
2934
1. Factorial Program In Java

0 commit comments

Comments
 (0)