FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
NumberPrograms/Emrip_No_21.java at main · javaistic/NumberPrograms · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
javaistic
/
NumberPrograms
Public
forked from
arghyaxcodes/NumberPrograms
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
NumberPrograms
/
Emrip_No_21.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (31 loc) · 684 Bytes
Breadcrumbs
NumberPrograms
/
Emrip_No_21.java
Copy path
File metadata and controls
31 lines (31 loc) · 684 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
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import
java
.
util
.*;
class
Emrip_No_21
{
public
static
void
main
(
String
args
[])
{
Scanner
sc
=
new
Scanner
(
System
.
in
);
System
.
out
.
println
(
"Enter a number"
);
int
n
=
sc
.
nextInt
();
int
i
,
c
=
0
,
e
=
0
,
copy
=
n
,
s
=
0
;
for
(
i
=
1
;
i
<=
n
;
i
++)
{
if
(
n
%
i
==
0
)
c
++;
}
while
(
copy
!=
0
)
{
int
d
=
copy
%
10
;
s
=((
s
*
10
)+
d
);
copy
=
copy
/
10
;
}
for
(
i
=
1
;
i
<=
s
;
i
++)
{
if
(
s
%
i
==
0
)
e
++;
}
if
(
c
==
2
&&
e
==
2
)
System
.
out
.
println
(
"Emrip No"
);
else
System
.
out
.
println
(
"Not an Emrip No"
);
}
}
Back
|
FazBrowse Home
|
New Git URL