Go Program to Calculate Employee Salary

This Go program uses the Else If statement to calculate the employee’s gross salary. Please replace the HRA and DA percentages as you need. package main import “fmt” func main() { var basicSal, hra, da, grossSal float64 fmt.Print(“Enter the Employee Basic Salary = “) fmt.Scanln(&basicSal) if basicSal <= 10000 { hra = (basicSal * 8) … Read more