Computer Science, asked by shamishukla010, 1 year ago

wap in java to accept d salary of an employee and add 15percent to it.Plz solve it by using scanner class.
plzz reply anyone

Answers

Answered by ThushartheBRANLIEST
2
import java.util.*;
class salary
{
public static void main (String args[])
{
Scanner in=new Scanner(System.in);
int s;
double fs;
System.out.println("Enter the salary");
s=in.nextInt();
fs=s+15/100.0*s;
System.out.println("The salary after adding 15% is"+fs);
}
}

ThushartheBRANLIEST: pls make me the branliest
shamishukla010: only u have answered
Similar questions