import java.util.Scanner;
public class b757 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
double r = sc.nextDouble();
double R= ((r*9)/5+32);
if(R%2==0) {
System.out.println((int)((r*9)/5+32));
}else {
System.out.printf("%g",((r*9)/5+32));
}
}
}
}
import java.util.Scanner;
public class b757 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
double r = sc.nextDouble();
double R= ((r*9)/5+32);
if(R%2==0) {
System.out.println((int)((r*9)/5+32));
}else {
System.out.printf("%g",((r*9)/5+32));
}
}
}
}
沒有輸出格式誰知道要用%g輸出阿@@