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
a61ab22a
Commit
a61ab22a
authored
Oct 12, 2018
by
Marcos Echague
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Ejercicio06.java
parent
10854596
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
Ejercicio06.java
+18
-13
No files found.
Ejercicio06.java
View file @
a61ab22a
import
java.util.Scanner
;
/**
* Ejercicio06
*/
public
class
Ejercicio06
{
public
static
void
main
(
String
[]
args
)
{
Scanner
teclado
=
new
Scanner
(
System
.
in
);
System
.
out
.
println
(
"Ingrese el precio"
);
float
precio
=
teclado
.
nextFloat
();
teclado
.
close
();
System
.
out
.
println
(
"El precio del Iva es: "
+
precio
*
0.10
);
}
import
java.util.Scanner
;
/**
* Ejercicio06
*/
public
class
Ejercicio06
{
public
static
void
main
(
String
[]
args
)
{
Scanner
teclado
=
new
Scanner
(
System
.
in
);
System
.
out
.
println
(
"Ingrese el precio"
);
float
precio
=
teclado
.
nextFloat
();
teclado
.
close
();
//mechague
//El enunciado pide agregar el iva al precio. Falto sumar el monto.
//Puese ser asi: precio*1.10
// o asi : (precio+precio*0.10)
System
.
out
.
println
(
"El precio del Iva es: "
+
precio
*
0.10
);
}
}
\ 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