Ramirez Albarran Omar escom ipn 6SCV2

Site hosted by Angelfire.com: Build your free website today!

Temperatura

import java.awt.*;
import java.lang.*;
import java.io.*;

public class temp
{
static int incr;

public void opera (){
int m;
for(int r=100;r>=-275;r=r-incr){
m=r*9/5;
System.out.println( r +" Grados Centigrados\t "+ (m+32) +" Grados Fahrenheit \t"+(r+273)+" Grados Kelvin");}
}

static void SetIncr(int ru)
{
incr=ru;}


public static void main (String arg[])
{
temp q= new temp();
SetIncr(Integer.parseInt(arg[0]));

q.opera();
}
}