C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ------------C COMMENT SECTION----------------
--> ORIGINAL AUTHOR :- Harsh
--> MODIFIED AUTHOR :- D-Key
--> PROGRAM TYPE:- Function parameterised
application code
--> REASON OF MODIFICATION:- Problem faced by
Harsh in Q&A. Post
link is in the
desciprtion.
--> DATE OF MODIFICATION:- 08-07-2018
--> TYPE OF ERROR :- Bugs Reported
--> Type of Bug :-# 8 Syntatic Bugs
# 3 Functional Bugs
# 1 Control Flow Bug(Main bug)
--> STATUS OF BUGS (CURRENT):- All fixed!!
🔔 IMPORTANT:- Input priority order is given below!! Please check the C-comment section below to get the details prior to program execution.
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run