Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5. public static void main(String[] args) {
  6. Scanner sc = new Scanner(System.in);
  7. String st=sc.nextLine();
  8. while (!st.equals("q")){
  9. int t=Integer.parseInt(st);
  10. t=t*9/5+32;
  11. System.out.println(t);
  12. st=sc.nextLine();
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement