// To find the equivalent
// degree in celcius
// for the fahrenheit degree
// from command line arguments
class circle
{
public static void main(String args[])
{
double f,c;
f=Double.parseDouble(args[0]);
c=5/9.0*(f-32);
System.out.println(c+"(C)= "+f+"(F)");
}
}
// degree in celcius
// for the fahrenheit degree
// from command line arguments
class circle
{
public static void main(String args[])
{
double f,c;
f=Double.parseDouble(args[0]);
c=5/9.0*(f-32);
System.out.println(c+"(C)= "+f+"(F)");
}
}
No comments:
Post a Comment