public
____________________
ConvertirAToneladas
{
public
static
____________________
main
(
String
[
]
args
)
{
double
radio
,
area
;
System
.
out
.
____________________
(
"
HALLA
EL
AREA
DE
UN
CIRCULO
"
)
;
System
.
____________________
.
print
(
"
Ingresar
el
radio
r
=
"
)
;
Scanner
scanner
=
new
____________________
(
System
.
in
)
;
radio
=
scanner
.
nextFloat
(
)
;
area
=
(
3
.
14159
*
radio
*
radio
)
;
System
.
out
.
println
(
"
Area
=
"
+
area
)
;
}
}
____________________
class
MediaArmonica
{
public
____________________
void
main
(
String
[
]
args
)
{
Scanner
teclado
=
new
Scanner
(
System
.
in
)
;
double
suma
=
0
;
System
.
out
.
____________________
(
"
Ingresar
la
cantidad
de
numeros
:
"
)
;
int
cant
=
teclado
.
nextInt
(
)
;
for
(
____________________
i
=
1
;
i
"
+
toneladas
+
"
toneladas
"
)
;
}
}
public
static
void
main
(
String
[
]
args
)
{
Scanner
sc
=
new
Scanner
(
System
.
in
)
;
String
Unidad
[
]
=
{
"
"
,
"
primero
"
,
"
segundo
"
,
"
tercero
"
,
"
cuarto
"
,
"
quinto
"
,
"
sexto
"
,
"
septimo
"
,
"
octavo
"
,
"
noveno
"
}
;
String
Decena
[
]
=
{
"
"
,
"
decimo
"
,
"
vigesimo
"
,
"
trigesimo
"
,
"
cuadragesimo
"
,
"
quincuagesimo
"
,
"
sexagesimo
"
,
"
septuagesimo
"
,
"
octogesimo
"
,
"
nonagesimo
"
}
;
String
Centena
[
]
=
{
"
"
,
"
centesimo
"
,
"
ducentesimo
"
,
"
tricentesimo
"
,
"
cuadringentesimo
"
,
"
quingentesimo
"
,
"
sexcentesimo
"
,
"
septingentesimo
"
,
"
octingentesimo
"
,
"
noningentesimo
"
}
;
____________________
.
out
.
println
(
"
Ingresa
numero
entre
1
y
999
"
)
;
int
N
=
sc
.
nextInt
(
)
;
int
u
=
N%10
;
____________________
d
=
(
N
/
10
)
%10
;
int
c
=
N
/
100
;
____________________
(
N>
=
100
)
{
System
.
out
.
println
(
Centena
[
c
]
+
"
"
+
Decena
[
d
]
+
"
"
+
Unidad
[
u
]
)
;
}
else
{
if
(
N>
=
10
)
{
System
.
____________________
.
println
(
Decena
[
d
]
+
"
"
+
Unidad
[
u
]
)
;
}
else
{
System
.
out
.
____________________
(
Unidad
[
N
]
)
;
}
}
}