FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cprogram/Gcdrecursion.cpp at master · seeditsolution/cprogram · GitHub
seeditsolution
cprogram
Repository navigation
Code
Issues
12
(12)
Pull requests
572
(572)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cprogram
/
Gcdrecursion.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (15 loc) · 333 Bytes
Breadcrumbs
cprogram
/
Gcdrecursion.cpp
Copy path
File metadata and controls
16 lines (15 loc) · 333 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
include
<
stdio.h
>
int
hcf
(
int
n1,
int
n2);
int
main
() {
int
n1, n2;
printf
(
"
Enter two positive integers:
"
);
scanf
(
"
%d %d
"
, &n1, &n2);
printf
(
"
G.C.D of %d and %d is %d.
"
, n1, n2,
hcf
(n1, n2));
return
0
;
}
int
hcf
(
int
n1,
int
n2) {
if
(n2 !=
0
)
return
hcf
(n2, n1 % n2);
else
return
n1;
}
Back
|
FazBrowse Home
|
New Git URL