public class wendu1 { public static void main(String[] args) { double sw,hw; int i; sw=0.0;//摄氏温度 hw=0.0;//华氏温度 i=0; do { hw=(sw*9)/5.0+32;//摄氏温度转化华氏温度 System.out.println("摄氏温度"+sw+"\t"+"华氏温度"+hw); sw=sw+20; i++; } while (i<=10&&sw<=250); } }