Edwin Alfaro Arenasads
-
Upload
alejandra-paredes-rivera -
Category
Documents
-
view
215 -
download
0
Transcript of Edwin Alfaro Arenasads
-
8/18/2019 Edwin Alfaro Arenasads
1/4
CONVERTIR EN SOLES A DOLARES
package tarea;
import javax.swing.JOptionPane;
public class tarea_01 {
public static void main!tring"# args$ {
%oat cd&0;
%oat cs&0;
%oat tc&0;
!tring a&JOptionPane.s'ow(nput)ialog*(ngrese
cantidad en soles+ *$;
cs&,loat.parse,loata$;
!tring b&JOptionPane.s'ow(nput)ialog*(ngrese el
tipo de cambio+ *$;
tc&,loat.parse,loatb$;
cd&cs-tc;
!stem.out.println*/otal en dolares+ * cd$;
2345(3! 67 P328396 )O7)6 )(26 /3:63
2345(3! 67 P5
-
8/18/2019 Edwin Alfaro Arenasads
2/4
AREA DE UNA PIRAMIDE
package tarea;
import javax.swing.JOptionPane;public class tarea_0= {
public static void main!tring"# args$ {
%oat cd&0;
%oat cs&0;
%oat tc&0;
!tring a&JOptionPane.s'ow(nput)ialog*(ngrese
cantidad en soles+ *$;
cs&,loat.parse,loata$;
!tring b&JOptionPane.s'ow(nput)ialog*(ngrese el
tipo de cambio+ *$;
tc&,loat.parse,loatb$;
cd&cs-tc;
!stem.out.println*/otal en dolares+ * cd$;
2345(3! 67 P328396 )O7)6 )(26 /3:63
-
8/18/2019 Edwin Alfaro Arenasads
3/4
2345(3! 67 P5
-
8/18/2019 Edwin Alfaro Arenasads
4/4
2345(3! public class tarea_03