1) in calculating the gross salary of an employee wat's wrong in this code?

public class Gross_salary { public static void main(String[] args) { display(); } public static void display() { int hra,basic =12000,da,salary; hra=basic*30/100; da=basic*20/100; salary=hra+da; System.out.println("gross salary="+salary); } }

Sign up to vote on this title
UsefulNot useful