Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- class temp {
- public static void main(String[] args) throws IOException
- {
- BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
- int centi;
- int f;
- System.out.println("enter temperature in centigrate");
- centi=Integer.parseInt(br.readLine());
- f=((9*centi)/5)+32;
- System.out.println("temperature in farenhite="+f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment