diff --git a/problem_8/problem_8.cpp b/problem_8/problem_8.cpp index 64edb8f..962d5ed 100644 --- a/problem_8/problem_8.cpp +++ b/problem_8/problem_8.cpp @@ -1 +1,20 @@ -//Wirte your code logic here! \ No newline at end of file +int breakingRecords(int n, int scores[]) +{ + int max, min, max_count=0, min_count=0, max_now; + min = max = max_now = scores[0]; + for(int i=1; i max_now) + { + max_count++; + max_now = scores[i]; + } + } + cout<