Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class gg
- {
- public static double net=0;
- public static double x=0;
- static BufferedReader in = new BufferedReader (new InputStreamReader(System.in));
- public static void main(String args []) throws IOException
- {
- double net=0;
- double x=Input();
- double net1=calc(x);
- output(net1);
- }
- private static double Input() throws IOException
- {
- double x =0;
- System.out.print("enter gross salary:");
- x= Double.parseDouble(in.readLine());
- return x;
- }
- private static double calc(double xx)
- {
- double x=xx;
- double net1=0;
- net1= x*0.95;
- return net1;
- }
- private static void output(double n)
- {
- double net = n;
- System.out.print("your net salary is :"+net);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment