ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Ejercicios
1) package ejercicio2;
import java.io.*;
public classEjercicio2 {
public static void main(String[] args)throws IOException{
int v,a,s,o;
floatvaso;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("ingresa v,a,s,o");
v=Integer.parseInt(in.readLine());
a=Integer.parseInt(in.readLine());
s=Integer.parseInt(in.readLine());
o=Integer.parseInt(in.readLine());
vaso=v+a+s+o;
System.out.println("vaso"+vaso);
}
}
2).
packageejercicio3;
import java.io.*;
public classEjercicio3 {
public static void main(String[] args)throws IOException{
int c,a,n,t,o;
floatcanto;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("ingresa c,a,n,t,o");
c=Integer.parseInt(in.readLine());
a=Integer.parseInt(in.readLine());
n=Integer.parseInt(in.readLine());
t=Integer.parseInt(in.readLine());
o=Integer.parseInt(in.readLine());
canto= c+a+n+t+o;
System.out.println("canto"+canto);
}
}
3).
packageejercicio4;
import java.io.*;
public classEjercicio4 {
public static void main(String[] args)throws IOException {
int f,l,o,r;
floatflor;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("ingresa f,l,o,r");
f=Integer.parseInt(in.readLine());
l=Integer.parseInt(in.readLine());
o=Integer.parseInt(in.readLine());
r=Integer.parseInt(in.readLine());
flor= f+l+o+r;
System.out.println("flor"+flor);
}
}
4).
packageejercicio5;
import java.io.*;
public classEjercicio5 {
public static void main(String[] args)throws IOException {
int s,a,l;
floatsal;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("ingresa s,a,l");
s=Integer.parseInt(in.readLine());
a=Integer.parseInt(in.readLine());
l=Integer.parseInt(in.readLine());
sal=s+a+l;
System.out.println("sal"+sal);
}
}
5).
packageejercicio6;
import java.io.*;
public classEjercicio6 {
public static void main(String[] args) throws IOException {
int u,n,o;
floatuno;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("ingresa u,n,o");
u=Integer.parseInt(in.readLine());
n=Integer.parseInt(in.readLine());
o=Integer.parseInt(in.readLine());
uno= u+n+o;
System.out.println("uno"+uno);
}
}
6).
packageejercicio7;
import java.io.*;
public classEjercicio7 {
public static void main(String[] args)throws IOException {
int t,e,c,l,a;
floattecla;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("ingresa t,e,c,l,a");
t=Integer.parseInt(in.readLine());
e=Integer.parseInt(in.readLine());
c=Integer.parseInt(in.readLine());
l=Integer.parseInt(in.readLine());
a=Integer.parseInt(in.readLine());
tecla= t+e+c+l+a;
System.out.println("tecla"+tecla);
}
}
7).
packageejercicio8;
import java.io.*;
public classEjercicio8 {
public static void main(String[] args)throws IOException {
int s,o,l;
floatsol;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("ingresa sol");
s=Integer.parseInt(in.readLine());
o=Integer.parseInt(in.readLine());
l=Integer.parseInt(in.readLine());
sol=s+o+l;
System.out.println("sol"+sol);
}
}
8).
packageejercicio9;
import java.io.*;
public classEjercicio9 {
public static void main(String[] args) throws IOException {
int sueldo,descuento;
floattotal;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("sueldo, descuento");
sueldo=Integer.parseInt(in.readLine());
descuento=Integer.parseInt(in.readLine());
total= sueldo-descuento;
System.out.println("descuento"+total);
}
}

More Related Content

What's hot (19)

Info Client dan Info Server
Info Client dan Info ServerInfo Client dan Info Server
Info Client dan Info Server
yoyomay93
?
aggregation and indexing with suitable example using MongoDB.
aggregation and indexing with suitable example using MongoDB.aggregation and indexing with suitable example using MongoDB.
aggregation and indexing with suitable example using MongoDB.
bhavesh lande
?
Palindromo no recursivo
Palindromo no recursivoPalindromo no recursivo
Palindromo no recursivo
jbersosa
?
Info server dan infoclient
Info server dan infoclientInfo server dan infoclient
Info server dan infoclient
Aisy Cuyy
?
for loops
for loopsfor loops
for loops
nawaf banjer
?
Suma de n numeros
Suma de n numerosSuma de n numeros
Suma de n numeros
Beto Calleja
?
C#¤Ç¥²©`¥à¤ò×÷¤ë2016 µÚ1»Ø
C#¤Ç¥²©`¥à¤ò×÷¤ë2016 µÚ1»ØC#¤Ç¥²©`¥à¤ò×÷¤ë2016 µÚ1»Ø
C#¤Ç¥²©`¥à¤ò×÷¤ë2016 µÚ1»Ø
¾©´ó ¥Þ¥¤¥³¥ó¥¯¥é¥Ö
?
Rest api
Rest apiRest api
Rest api
??? ???
?
Mejor project
Mejor projectMejor project
Mejor project
ajeet yadav
?
07 4 for???
07 4 for???07 4 for???
07 4 for???
Changwon National University
?
Codigo de palindromo
Codigo de palindromoCodigo de palindromo
Codigo de palindromo
jbersosa
?
C++14 reflections
C++14 reflections C++14 reflections
C++14 reflections
corehard_by
?
I will be callback/JSͬ²½Åc·Çͬ²½
I will be callback/JSͬ²½Åc·Çͬ²½I will be callback/JSͬ²½Åc·Çͬ²½
I will be callback/JSͬ²½Åc·Çͬ²½
ZenChou2
?
Dapan
DapanDapan
Dapan
Vinh Nguy?n Huy
?
OpenResty/Lua 70+ Advanced Programming Skills and Optimization tips
OpenResty/Lua 70+ Advanced Programming Skills and Optimization tipsOpenResty/Lua 70+ Advanced Programming Skills and Optimization tips
OpenResty/Lua 70+ Advanced Programming Skills and Optimization tips
Ho Kim
?
1- Sourcecode Array
1- Sourcecode Array1- Sourcecode Array
1- Sourcecode Array
Fajar Baskoro
?
Ejercicios De Algoritmos
Ejercicios De AlgoritmosEjercicios De Algoritmos
Ejercicios De Algoritmos
semuvi
?
Java Thread Cronometro
Java Thread CronometroJava Thread Cronometro
Java Thread Cronometro
jubacalo
?
Info Client dan Info Server
Info Client dan Info ServerInfo Client dan Info Server
Info Client dan Info Server
yoyomay93
?
aggregation and indexing with suitable example using MongoDB.
aggregation and indexing with suitable example using MongoDB.aggregation and indexing with suitable example using MongoDB.
aggregation and indexing with suitable example using MongoDB.
bhavesh lande
?
Palindromo no recursivo
Palindromo no recursivoPalindromo no recursivo
Palindromo no recursivo
jbersosa
?
Info server dan infoclient
Info server dan infoclientInfo server dan infoclient
Info server dan infoclient
Aisy Cuyy
?
Codigo de palindromo
Codigo de palindromoCodigo de palindromo
Codigo de palindromo
jbersosa
?
I will be callback/JSͬ²½Åc·Çͬ²½
I will be callback/JSͬ²½Åc·Çͬ²½I will be callback/JSͬ²½Åc·Çͬ²½
I will be callback/JSͬ²½Åc·Çͬ²½
ZenChou2
?
OpenResty/Lua 70+ Advanced Programming Skills and Optimization tips
OpenResty/Lua 70+ Advanced Programming Skills and Optimization tipsOpenResty/Lua 70+ Advanced Programming Skills and Optimization tips
OpenResty/Lua 70+ Advanced Programming Skills and Optimization tips
Ho Kim
?
Ejercicios De Algoritmos
Ejercicios De AlgoritmosEjercicios De Algoritmos
Ejercicios De Algoritmos
semuvi
?
Java Thread Cronometro
Java Thread CronometroJava Thread Cronometro
Java Thread Cronometro
jubacalo
?

More from Jhair Aguirre (12)

Desarrollo sostenible y educaci¨®n ambientalDesarrollo sostenible y educaci¨®n ambiental
Desarrollo sostenible y educaci¨®n ambiental
Jhair Aguirre
?
oferta ambiental e impacto ambientaloferta ambiental e impacto ambiental
oferta ambiental e impacto ambiental
Jhair Aguirre
?
codificacion de trabajos en neatbeens
codificacion de trabajos en neatbeenscodificacion de trabajos en neatbeens
codificacion de trabajos en neatbeens
Jhair Aguirre
?
Kendal y-kendel-jair aguirreKendal y-kendel-jair aguirre
Kendal y-kendel-jair aguirre
Jhair Aguirre
?
Algoritmos condicionales..Algoritmos condicionales..
Algoritmos condicionales..
Jhair Aguirre
?
Jimena boleta factura u otrosJimena boleta factura u otros
Jimena boleta factura u otros
Jhair Aguirre
?
Ejercicios jimena
Ejercicios jimenaEjercicios jimena
Ejercicios jimena
Jhair Aguirre
?
Algoritmos condicionales de LinderAlgoritmos condicionales de Linder
Algoritmos condicionales de Linder
Jhair Aguirre
?
Algoritmos condicionales carlosAlgoritmos condicionales carlos
Algoritmos condicionales carlos
Jhair Aguirre
?
Boleta,facturaBoleta,factura
Boleta,factura
Jhair Aguirre
?
Guia de remision,factura,boleta,curriculum,recibo por honorariosGuia de remision,factura,boleta,curriculum,recibo por honorarios
Guia de remision,factura,boleta,curriculum,recibo por honorarios
Jhair Aguirre
?
trabajo de algoritmostrabajo de algoritmos
trabajo de algoritmos
Jhair Aguirre
?
Desarrollo sostenible y educaci¨®n ambientalDesarrollo sostenible y educaci¨®n ambiental
Desarrollo sostenible y educaci¨®n ambiental
Jhair Aguirre
?
oferta ambiental e impacto ambientaloferta ambiental e impacto ambiental
oferta ambiental e impacto ambiental
Jhair Aguirre
?
codificacion de trabajos en neatbeens
codificacion de trabajos en neatbeenscodificacion de trabajos en neatbeens
codificacion de trabajos en neatbeens
Jhair Aguirre
?
Kendal y-kendel-jair aguirreKendal y-kendel-jair aguirre
Kendal y-kendel-jair aguirre
Jhair Aguirre
?
Algoritmos condicionales..Algoritmos condicionales..
Algoritmos condicionales..
Jhair Aguirre
?
Jimena boleta factura u otrosJimena boleta factura u otros
Jimena boleta factura u otros
Jhair Aguirre
?
Algoritmos condicionales de LinderAlgoritmos condicionales de Linder
Algoritmos condicionales de Linder
Jhair Aguirre
?
Algoritmos condicionales carlosAlgoritmos condicionales carlos
Algoritmos condicionales carlos
Jhair Aguirre
?
Boleta,facturaBoleta,factura
Boleta,factura
Jhair Aguirre
?
Guia de remision,factura,boleta,curriculum,recibo por honorariosGuia de remision,factura,boleta,curriculum,recibo por honorarios
Guia de remision,factura,boleta,curriculum,recibo por honorarios
Jhair Aguirre
?
trabajo de algoritmostrabajo de algoritmos
trabajo de algoritmos
Jhair Aguirre
?

Ejercicios

  • 1. Ejercicios 1) package ejercicio2; import java.io.*; public classEjercicio2 { public static void main(String[] args)throws IOException{ int v,a,s,o; floatvaso; BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); System.out.println("ingresa v,a,s,o"); v=Integer.parseInt(in.readLine()); a=Integer.parseInt(in.readLine()); s=Integer.parseInt(in.readLine()); o=Integer.parseInt(in.readLine()); vaso=v+a+s+o; System.out.println("vaso"+vaso); } } 2). packageejercicio3; import java.io.*; public classEjercicio3 { public static void main(String[] args)throws IOException{ int c,a,n,t,o; floatcanto; BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); System.out.println("ingresa c,a,n,t,o"); c=Integer.parseInt(in.readLine()); a=Integer.parseInt(in.readLine()); n=Integer.parseInt(in.readLine()); t=Integer.parseInt(in.readLine()); o=Integer.parseInt(in.readLine()); canto= c+a+n+t+o; System.out.println("canto"+canto); } } 3). packageejercicio4; import java.io.*; public classEjercicio4 { public static void main(String[] args)throws IOException { int f,l,o,r; floatflor; BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); System.out.println("ingresa f,l,o,r"); f=Integer.parseInt(in.readLine()); l=Integer.parseInt(in.readLine()); o=Integer.parseInt(in.readLine()); r=Integer.parseInt(in.readLine()); flor= f+l+o+r;
  • 2. System.out.println("flor"+flor); } } 4). packageejercicio5; import java.io.*; public classEjercicio5 { public static void main(String[] args)throws IOException { int s,a,l; floatsal; BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); System.out.println("ingresa s,a,l"); s=Integer.parseInt(in.readLine()); a=Integer.parseInt(in.readLine()); l=Integer.parseInt(in.readLine()); sal=s+a+l; System.out.println("sal"+sal); } } 5). packageejercicio6; import java.io.*; public classEjercicio6 { public static void main(String[] args) throws IOException { int u,n,o; floatuno; BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); System.out.println("ingresa u,n,o"); u=Integer.parseInt(in.readLine()); n=Integer.parseInt(in.readLine()); o=Integer.parseInt(in.readLine()); uno= u+n+o; System.out.println("uno"+uno); } } 6). packageejercicio7; import java.io.*; public classEjercicio7 { public static void main(String[] args)throws IOException { int t,e,c,l,a; floattecla; BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); System.out.println("ingresa t,e,c,l,a"); t=Integer.parseInt(in.readLine()); e=Integer.parseInt(in.readLine());
  • 3. c=Integer.parseInt(in.readLine()); l=Integer.parseInt(in.readLine()); a=Integer.parseInt(in.readLine()); tecla= t+e+c+l+a; System.out.println("tecla"+tecla); } } 7). packageejercicio8; import java.io.*; public classEjercicio8 { public static void main(String[] args)throws IOException { int s,o,l; floatsol; BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); System.out.println("ingresa sol"); s=Integer.parseInt(in.readLine()); o=Integer.parseInt(in.readLine()); l=Integer.parseInt(in.readLine()); sol=s+o+l; System.out.println("sol"+sol); } } 8). packageejercicio9; import java.io.*; public classEjercicio9 { public static void main(String[] args) throws IOException { int sueldo,descuento; floattotal; BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); System.out.println("sueldo, descuento"); sueldo=Integer.parseInt(in.readLine()); descuento=Integer.parseInt(in.readLine()); total= sueldo-descuento; System.out.println("descuento"+total); } }