/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication30;
/**
*
* @author USER
*/
public class JavaApplication6 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int v[]=new int [1000];
for(int i=0;i< 999; i++ )
{
v[i]=(int) (Math.random()*80);
v[i]=v[i]-30;
System.out.println("celsius"+v[i]);
v[i]=(9/5)*(v[i]-32);
System.out.println("Fahrenheit"+v[i]);
}
}
}
Nessun commento:
Posta un commento