Skip to content

Commit 6304b49

Browse files
Update README.md
1 parent bb9a6d0 commit 6304b49

File tree

1 file changed

+60
-50
lines changed

1 file changed

+60
-50
lines changed

README.md

Lines changed: 60 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,101 @@
1-
# Java Basics: Control Flow
1+
# 📘 Java Basics: Control Flow
22

3-
This repository contains a collection of beginner-friendly Java programs focused on **control flow**, including branching and looping constructs. Each program is self-contained and demonstrates a specific logic-building exercise.
3+
This repository contains a collection of beginner-friendly Java programs focused on **control flow**, including looping, conditional statements, number operations, and pattern generation. Each file is a standalone logic exercise designed to build foundational programming skills.
44

5-
---
6-
7-
## 🚀 Overview
5+
## 📌 Overview
86

97
This project includes simple yet foundational Java programs that cover:
108

11-
- Printing number ranges
12-
- Checking if a number is positive or negative
13-
- Reversing a number
14-
- Finding the smallest of three numbers
15-
- Calculating discounts
16-
- Generating number patterns
9+
- Printing numeric ranges
10+
- Checking number signs
11+
- Reversing integers
12+
- Comparing numbers
13+
- Applying conditional logic (discount calculation)
14+
- Generating patterns with nested loops
1715

18-
Each program is placed inside the `task1` folder and is beginner‑friendly.
16+
All source files are located inside:
1917

20-
---
18+
```
19+
/task1
20+
```
2121

22-
## 📂 Project Structure
22+
## 📁 Project Structure
2323

2424
```
25-
task1/
26-
├── CheckNumberSign.java
27-
├── DiscountCalculator.java
28-
├── FindSmallestOfThree.java
29-
├── NumberPatternGenerator.java
30-
├── NumberPatternGeneratorAlt.java
31-
├── PrintNumRange.java
32-
├── ReverseNumber.java
33-
├── Problems.md
25+
java-basics-control-flow/
26+
├── task1/
27+
│ ├── CheckNumberSign.java
28+
│ ├── DiscountCalculator.java
29+
│ ├── FindSmallestOfThree.java
30+
│ ├── NumberPatternGenerator.java
31+
│ ├── NumberPatternGeneratorAlt.java
32+
│ ├── PrintNumRange.java
33+
│ ├── ReverseNumber.java
34+
│────── Problems.md
35+
├── screenshots/
36+
│ ├── discountcal.png
37+
│ ├── numcheck.png
38+
│ ├── pattern.png
39+
│ ├── printnumrange.png
40+
│ ├── reversenum.png
41+
│ └── smallnum.png
3442
└── README.md
3543
```
3644

37-
---
38-
3945
## 🖼️ Program Output Screenshots
4046

4147
### 1️⃣ Print Number Range
42-
![PrintNumRange](printnumrange.png)
48+
![Print Number Range](screenshots/printnumrange.png)
4349

4450
### 2️⃣ Check Number Sign
45-
![Check Number Sign](numcheck.png)
51+
![Check Number Sign](screenshots/numcheck.png)
4652

4753
### 3️⃣ Reverse Number
48-
![Reverse Number](reversenum.png)
54+
![Reverse Number](screenshots/reversenum.png)
4955

5056
### 4️⃣ Find Smallest of Three
51-
![Smallest Number](smallnum.png)
57+
![Smallest Number](screenshots/smallnum.png)
5258

5359
### 5️⃣ Discount Calculator
54-
![Discount](discountcal.png)
60+
![Discount](screenshots/discountcal.png)
5561

5662
### 6️⃣ Number Pattern
57-
![Pattern](pattern.png)
58-
59-
---
63+
![Pattern](screenshots/pattern.png)
6064

6165
## ▶️ Running the Programs
6266

63-
### **Prerequisites**
64-
- Java Development Kit (JDK) 8 or higher
65-
- Any IDE or terminal to execute Java files
67+
1. Navigate to the directory:
6668

67-
### **Compile**
68-
```bash
69-
javac Filename.java
7069
```
70+
cd task1
71+
```
72+
73+
2. Compile the program:
7174

72-
### **Run**
73-
```bash
74-
java Filename
7575
```
76+
javac FileName.java
77+
```
78+
79+
3. Run the program:
7680

77-
Each program prompts the user for input where necessary and displays results accordingly.
81+
```
82+
java FileName
83+
```
7884

79-
---
85+
Example:
8086

81-
## 📘 Problems Reference
87+
```
88+
javac PrintNumRange.java
89+
java PrintNumRange
90+
```
8291

83-
All problem statements are listed in the `Problems.md` file inside the repository.
92+
## 🧰 Requirements
8493

85-
---
94+
- JDK 8 or above
95+
- Any IDE or terminal capable of running Java
8696

87-
## 📩 Contact
97+
## 🙋 Contact
8898

8999
**Dinesh Chandra — TheComputationalCore**
90-
🔗 GitHub: https://github.com/TheComputationalCore
91-
🔗 YouTube: https://www.youtube.com/@TheComputationalCore
100+
GitHub: https://github.com/TheComputationalCore
101+
YouTube: https://www.youtube.com/@TheComputationalCore

0 commit comments

Comments
 (0)