Level 6 > Lesson 9
package main
import "fmt"
func carpetNeeded(length int, breadth int, costPerSqFt int) (area int,costOfCarpeting int){
area = lengthbreadth
costOfCarpeting = areacostPerSqFt
return
}
func main() {
// use two variables - area & cost to store values returned
area,cost := carpetNeeded(12, 4, 5)
fmt.Printf("Area of floor is %d and cost of carpet will be %d", area, cost)
}
code submit nhi ho rha("Have you updated the function declaration to make it return two int values?')
yhi bta rha hai kya hai eska mtlb