Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry pick all README.md changes #28

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added MinMaxCalculation.class
Binary file not shown.
25 changes: 25 additions & 0 deletions MinMaxCalculation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
public class MinMaxCalculation {
public static void main(String[] args) {
int[] num = {45, 23, 8, 12, 20};
int min = num[0];
int max = num[0];

for (int n : num) {
if (n < min) {
min = n;
}
if (n > max) {
max = n;
}
}

System.out.print("The given set of numbers is: ");
for (int n : num) {
System.out.print(n + " ");
}
System.out.println();

System.out.println("Minimum of the numbers is : " + min);
System.out.println("Maximum of the given numbers is : " + max);
}
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#Editing the 2nd time after git reset.
#Editing README.md file for reset exercise.

# Basic Statistics

Basic Statistics is a Java-based implementation for computing statistics on a set of numbers.
Expand Down