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
Juan Cristaldo
java-e001
Commits
cd54bf8d
Commit
cd54bf8d
authored
Sep 08, 2020
by
Juan Cristaldo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ejercicio 7 Realizado
parent
f37b6958
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletions
+34
-1
JavaApplication/src/javaapplication/Ejercicio06.java
+1
-1
JavaApplication/src/javaapplication/Ejercicio07.java
+33
-0
No files found.
JavaApplication/src/javaapplication/Ejercicio06.java
View file @
cd54bf8d
...
...
@@ -17,7 +17,7 @@ public class Ejercicio06 {
public
static
void
main
(
String
[]
args
)
{
Scanner
entrada
=
new
Scanner
(
System
.
in
);
System
.
out
.
println
(
"***Operacion
es
***"
);
System
.
out
.
println
(
"***Operacion
del precio final con IVA
***"
);
System
.
out
.
println
(
"Ingrese el precio de un producto"
);
double
precio
=
entrada
.
nextDouble
();
...
...
JavaApplication/src/javaapplication/Ejercicio07.java
0 → 100644
View file @
cd54bf8d
/*
* 7. Muestra los números del 1 al 100 (ambos incluidos) divisibles entre 2 y 3.
*/
package
javaapplication
;
import
java.util.Scanner
;
/**
*
* @author Juan Cristaldo
*/
public
class
Ejercicio07
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"***Números divisibles entre 2***"
);
for
(
int
numero
=
1
;
numero
<=
100
;
numero
++)
{
if
(
numero
%
2
==
0
)
System
.
out
.
println
(
" "
+
numero
);
}
System
.
out
.
println
(
"***Números divisibles entre 3***"
);
for
(
int
numero
=
1
;
numero
<=
100
;
numero
++)
{
if
(
numero
%
3
==
0
)
System
.
out
.
println
(
" "
+
numero
);
}
}
}
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