Skip to content

Instantly share code, notes, and snippets.

@pepet96
pepet96 / mathproblems
Created October 25, 2013 03:42
Se hacen las operaciones de conversion principalmente
import java.io.*;
public class mathproblems {
public static void main (String [] args) throws IOException {
InputStreamReader inStream = new InputStreamReader(System.in);
BufferedReader systemIn = new BufferedReader(inStream);
String centigrades, fahrenheit;
double fahrenheitanswer, centigradeanswer;
@pepet96
pepet96 / Age
Created October 25, 2013 03:48
Introducir Nombre y Edad
import java.io.*;
public class Age {
public static void main(String [] args) throws IOException {
InputStreamReader inStream = new InputStreamReader(System.in);
BufferedReader systemIn = new BufferedReader(inStream);
String my_name, greeting, myAge, variable;
import java.util.Scanner;
import java.io.*;
class BonusWage {
public static void main (String [] args ){
Scanner input = new Scanner(System.in);
int hours, extrahours;
double wagerate,total,bonus;
mport java.util.Scanner;
import java.io.*;
class Fever {
public static void main (String [] args) throws IOException {
Scanner input = new Scanner(System.in);
double temp;
import java.util.Scanner;
import java.io.*;
class PosNeg {
public static void main (String [] args) throws IOException {
Scanner input = new Scanner(System.in);
double number;
import java.util.Scanner;
import java.io.*;
class Shirts {
public static void main (String [] args) throws IOException {
Scanner input = new Scanner(System.in);
double shirts,total;
import java.util.Scanner;
class Tickets {
public static void main (String [] args) throws IOException {
Scanner input = new Scanner(System.in);
char argument;
int age;
double total;
@pepet96
pepet96 / AsteriskTriangle
Created November 13, 2013 23:30
AsteriskTriangle
import java.util.Scanner;
class AsteriskTriangle {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
int initial, next, last;
System.out.println("Please type an integer: ");
@pepet96
pepet96 / MilesPerGallon
Created November 13, 2013 23:40
MilesPerGallon
import java.util.Scanner;
class MilesPerGallon {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
int imiles, fmiles, gallons, mpg;
@pepet96
pepet96 / ClassifyNumbers
Created November 13, 2013 23:41
ClassifyNumbers
import java.util.Scanner;
class ClassifyNumbers {
public static void main(String [] args) {
Scanner input = new Scanner(System.in);
int initial, low, high, sum, value, i;
System.out.println("How many numbers do you wish to analyze?");