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
c4f3413c
Commit
c4f3413c
authored
Sep 08, 2020
by
Juan Cristaldo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ejercicio 1 Realizado
parent
da0f0d12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
9 deletions
+49
-9
JavaApplication/nbproject/project.properties
+1
-1
JavaApplication/src/javaapplication/Ejercicio01.java
+47
-0
JavaApplication/src/javaapplication/Ejercicio02.java
+1
-8
No files found.
JavaApplication/nbproject/project.properties
View file @
c4f3413c
...
@@ -54,7 +54,7 @@ javadoc.splitindex=true
...
@@ -54,7 +54,7 @@ javadoc.splitindex=true
javadoc.use
=
true
javadoc.use
=
true
javadoc.version
=
false
javadoc.version
=
false
javadoc.windowtitle
=
javadoc.windowtitle
=
main.class
=
javaapplication.
JavaApplication
main.class
=
javaapplication.
Ejercicio01
manifest.file
=
manifest.mf
manifest.file
=
manifest.mf
meta.inf.dir
=
${src.dir}/META-INF
meta.inf.dir
=
${src.dir}/META-INF
mkdist.disabled
=
false
mkdist.disabled
=
false
...
...
JavaApplication/src/javaapplication/Ejercicio01.java
0 → 100644
View file @
c4f3413c
/*
* 1. Declara dos variables numéricas (con el valor que desees), muestra por consola la
* suma, resta, multiplicación, división y módulo (resto de la división).
*/
package
javaapplication
;
import
java.util.Scanner
;
/**
*
* @author Juan Cristaldo
*/
public
class
Ejercicio01
{
public
static
void
main
(
String
[]
args
)
{
Scanner
entrada
=
new
Scanner
(
System
.
in
);
// Práctica de mi facultad xd
System
.
out
.
println
(
"***Operaciones Algebraicas***"
);
System
.
out
.
println
(
"Ingrese el primer número"
);
int
nro1
=
entrada
.
nextInt
();
System
.
out
.
println
(
"Ingrese el segundo número"
);
int
nro2
=
entrada
.
nextInt
();
// int nro1 = 10;
// int nro2 = 4;
int
suma
=
nro1
+
nro2
;
System
.
out
.
println
(
"La suma es: "
+
suma
);
int
resta
=
nro1
-
nro2
;
System
.
out
.
println
(
"La resta es: "
+
resta
);
int
multiplicacion
=
nro1
*
nro2
;
System
.
out
.
println
(
"La multiplicación es: "
+
multiplicacion
);
int
division
=
nro1
/
nro2
;
System
.
out
.
println
(
"La división es: "
+
division
);
int
restodedivision
=
nro1
%
nro2
;
System
.
out
.
println
(
"El resto de la división es: "
+
restodedivision
);
}
}
\ No newline at end of file
JavaApplication/src/javaapplication/
JavaApplication
.java
→
JavaApplication/src/javaapplication/
Ejercicio02
.java
View file @
c4f3413c
...
@@ -9,13 +9,6 @@ package javaapplication;
...
@@ -9,13 +9,6 @@ package javaapplication;
*
*
* @author Juan Cristaldo
* @author Juan Cristaldo
*/
*/
public
class
JavaApplication
{
public
class
Ejercicio02
{
/**
* @param args the command line arguments
*/
public
static
void
main
(
String
[]
args
)
{
System
.
err
.
println
(
"Hello World"
);
}
}
}
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