Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- String st=sc.nextLine();
- while (!st.equals("q")){
- int t=Integer.parseInt(st);
- t=t*9/5+32;
- System.out.println(t);
- st=sc.nextLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement