Signup/Sign In

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

func areaOfRect(length float64, breadth float64) float64 {
// write code here
return length * breadth
}
2 years ago
It looks like you are trying to use HTML formatting in your code, but it is not being recognized as valid code.
Here is the corrected HTML code:

Do you know?




Note that this HTML code will not be recognized as valid code in a Go program. If you want to include HTML in a Go program, you need to use a library that can parse and render HTML, such as the 'html/template' package.

I hope this helps! Let me know if you have any other questions.
2 years ago
func carpetNeeded(length int, breadth int, costPerSqFt int) (area int, costOfCarpeting int) {
area = length * breadth
costOfCarpeting = area * costPerSqFt
return area, costOfCarpeting
}
2 years ago