papun

Untitled

Jul 18th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import java.io.*;
  2. class temp {
  3.  
  4.  
  5. public static void main(String[] args) throws IOException
  6. {
  7. BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  8. int centi;
  9. int f;
  10. System.out.println("enter temperature in centigrate");
  11. centi=Integer.parseInt(br.readLine());
  12. f=((9*centi)/5)+32;
  13. System.out.println("temperature in farenhite="+f);
  14.  
  15.  
  16.  
  17. }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment