write a program to enter basic salary calculate the gross salary with 5% and 15% on basic salary display gross only
Answers
Answered by
0
import java.util.*;class gs{ public static void main(String akdn[]) { Scanner sc=new Scanner(System.in); double gs,bs,s; System.out.println("ENTER YOUR SALARY = "); s=sc.nextDouble(); gs = (5*s)/100; bs = (15*s)/100; System.out.println("GROSS SALARY = "+(gs+s)); }}
Similar questions