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
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);
}
}
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
Similar questions
Physics,
7 months ago
CBSE BOARD XII,
7 months ago
Science,
7 months ago
Music,
1 year ago
Math,
1 year ago