x berilgan. y = 3x⁶ − 6x² − 7 funksiyasining qiymatini hisoblang.
func solve(x int) float64 {
// ...
}
Input: x=2
Output: 161.0
Input: x=1
Output: -10.0
Input: x=0
Output: -7.0
math.Pow(x, 6) yoki x2 := x * x kabi oraliq o'zgaruvchi ishlating.