Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
java-e001
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hugo Villagra
java-e001
Commits
10854596
Commit
10854596
authored
Oct 12, 2018
by
Marcos Echague
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Ejercicio05.java
parent
557bfb70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
Ejercicio05.java
+20
-19
No files found.
Ejercicio05.java
View file @
10854596
import
java.util.Scanner
;
/**
* Ejercicio05
*/
public
class
Ejercicio05
{
public
static
void
main
(
String
[]
args
)
{
Scanner
teclado
=
new
Scanner
(
System
.
in
);
System
.
out
.
println
(
"Ingrese un numero"
);
int
numero
=
teclado
.
nextInt
();
teclado
.
close
();
if
(
numero
%
2
==
0
){
System
.
out
.
println
(
"Es divisible entre 2"
);
}
else
{
System
.
out
.
println
(
"No es divisible entre 2"
);
}
}
}
\ No newline at end of file
import
java.util.Scanner
;
/**
* Ejercicio05
*/
public
class
Ejercicio05
{
public
static
void
main
(
String
[]
args
)
{
Scanner
teclado
=
new
Scanner
(
System
.
in
);
System
.
out
.
println
(
"Ingrese un numero"
);
int
numero
=
teclado
.
nextInt
();
teclado
.
close
();
if
(
numero
%
2
==
0
){
System
.
out
.
println
(
"Es divisible entre 2"
);
}
else
{
System
.
out
.
println
(
"No es divisible entre 2"
);
}
}
}
//mechague Excelente!
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment