SlideShare 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

Info Client dan Info Server
Info Client dan Info ServerInfo Client dan Info Server
Info Client dan Info Server
yoyomay93
 
Info server dan infoclient
Info server dan infoclientInfo server dan infoclient
Info server dan infoclient
Aisy Cuyy
 
Ejercicios De Algoritmos
Ejercicios De AlgoritmosEjercicios De Algoritmos
Ejercicios De Algoritmos
semuvi
 
Java Thread Cronometro
Java Thread CronometroJava Thread Cronometro
Java Thread Cronometro
jubacalo
 

What's hot (19)

Info Client dan Info Server
Info Client dan Info ServerInfo Client dan Info Server
Info Client dan Info Server
 
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.
 
Palindromo no recursivo
Palindromo no recursivoPalindromo no recursivo
Palindromo no recursivo
 
Info server dan infoclient
Info server dan infoclientInfo server dan infoclient
Info server dan infoclient
 
for loops
for loopsfor loops
for loops
 
Suma de n numeros
Suma de n numerosSuma de n numeros
Suma de n numeros
 
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
 
07 4 for반복문
07 4 for반복문07 4 for반복문
07 4 for반복문
 
Codigo de palindromo
Codigo de palindromoCodigo de palindromo
Codigo de palindromo
 
C++14 reflections
C++14 reflections C++14 reflections
C++14 reflections
 
I will be callback/JS同步與非同步
I will be callback/JS同步與非同步I will be callback/JS同步與非同步
I will be callback/JS同步與非同步
 
Mikstura it2013
Mikstura it2013Mikstura it2013
Mikstura it2013
 
Dapan
DapanDapan
Dapan
 
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
 
1- Sourcecode Array
1- Sourcecode Array1- Sourcecode Array
1- Sourcecode Array
 
Ejercicios De Algoritmos
Ejercicios De AlgoritmosEjercicios De Algoritmos
Ejercicios De Algoritmos
 
Java Thread Cronometro
Java Thread CronometroJava Thread Cronometro
Java Thread Cronometro
 

Viewers also liked (11)

Bcom sem i-to-sem-vi
Bcom sem i-to-sem-viBcom sem i-to-sem-vi
Bcom sem i-to-sem-vi
 
Kids, Step Away From the Graphic Design Degree
Kids, Step Away From the Graphic Design DegreeKids, Step Away From the Graphic Design Degree
Kids, Step Away From the Graphic Design Degree
 
SUPERTECH INFRA BUILDWELL PRIVATE LTD 3
SUPERTECH INFRA BUILDWELL PRIVATE LTD 3SUPERTECH INFRA BUILDWELL PRIVATE LTD 3
SUPERTECH INFRA BUILDWELL PRIVATE LTD 3
 
project 3 full report
project 3 full reportproject 3 full report
project 3 full report
 
Air Head Chicky Poos
Air Head Chicky PoosAir Head Chicky Poos
Air Head Chicky Poos
 
Farewell, Land of Cronyism and Incompetence
Farewell, Land of Cronyism and IncompetenceFarewell, Land of Cronyism and Incompetence
Farewell, Land of Cronyism and Incompetence
 
Where Do I Go From Here
Where Do I Go From HereWhere Do I Go From Here
Where Do I Go From Here
 
My place
My placeMy place
My place
 
TEORIA DE LAS FORMAS DE GOBIERNO EN EL PENSAMIENTO POLÍTICO
TEORIA DE LAS FORMAS DE GOBIERNO EN EL PENSAMIENTO POLÍTICOTEORIA DE LAS FORMAS DE GOBIERNO EN EL PENSAMIENTO POLÍTICO
TEORIA DE LAS FORMAS DE GOBIERNO EN EL PENSAMIENTO POLÍTICO
 
codificacion de trabajos en neatbeens
codificacion de trabajos en neatbeenscodificacion de trabajos en neatbeens
codificacion de trabajos en neatbeens
 
Teoria sobre formas de gobierno según (norberto bobbio)
Teoria sobre formas de gobierno  según (norberto bobbio)Teoria sobre formas de gobierno  según (norberto bobbio)
Teoria sobre formas de gobierno según (norberto bobbio)
 

More from Jhair Aguirre (11)

Desarrollo sostenible y educación ambiental
Desarrollo sostenible y educación ambientalDesarrollo sostenible y educación ambiental
Desarrollo sostenible y educación ambiental
 
oferta ambiental e impacto ambiental
oferta ambiental e impacto ambientaloferta ambiental e impacto ambiental
oferta ambiental e impacto ambiental
 
Kendal y-kendel-jair aguirre
Kendal y-kendel-jair aguirreKendal y-kendel-jair aguirre
Kendal y-kendel-jair aguirre
 
Algoritmos condicionales..
Algoritmos condicionales..Algoritmos condicionales..
Algoritmos condicionales..
 
Jimena boleta factura u otros
Jimena boleta factura u otrosJimena boleta factura u otros
Jimena boleta factura u otros
 
Algoritmos condicionales de Linder
Algoritmos condicionales de LinderAlgoritmos condicionales de Linder
Algoritmos condicionales de Linder
 
Algoritmos condicionales carlos
Algoritmos condicionales carlosAlgoritmos condicionales carlos
Algoritmos condicionales carlos
 
Boleta,factura
Boleta,facturaBoleta,factura
Boleta,factura
 
Ejercicios
EjerciciosEjercicios
Ejercicios
 
Guia de remision,factura,boleta,curriculum,recibo por honorarios
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
 
trabajo de algoritmos
trabajo de algoritmostrabajo de algoritmos
trabajo de algoritmos
 

Ejercicios jimena

  • 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); } }