This repository contains a collection of simple Java programs designed to demonstrate various programming concepts and techniques. Each program is described below with its functionality and purpose.
- If the score is less than or equal to 40, the grade is D.
- If the score is less than 61, the grade is C.
- If the score is less than 81, the grade is B.
- Otherwise, the grade is A.
- Your score is 50.
- Sorry, you did not pass.
- Displays all odd numbers between 1 and 100.
- Calculates the area of a triangle given the base and height.
- Displays the number of characters in the string "Programmer".
- Calculates the area of a triangle.
- Calculates the area of a rectangle given the length and width.
- Calculates the area of a circle with π = 3.14 and radius = 7.
- Displays all even numbers between 1 and 75.
- Creates an array containing the names of the days from Monday to Sunday.
- Example: "Day 1 is Monday", "Day 2 is Tuesday", etc.
- Displays the first 5 Fibonacci numbers with the first term = 6 and the second term = 9.
- Creates a right-angled triangle using stars.
- Creates a full triangle using stars.
- A basic calculator program.
- Calculates the area of a rectangle.
- Calculates the area of a rectangle.
- Calculates sine, cosine, and tangent angles.
- Calculates the density of a substance.
- Counts from 1 to 1 million and displays the record.
- Calculates the surface area of a cube.
- Displays all odd numbers between 1 and 75.
Powered by Reza