Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level 6 > Lesson 6

line no. 8 .
by

4 Answers

iamabhishek
Can you explain more. What is on line number 8? What error you ar facing?
rajnishsinghrajpoot
ho gya resolve sir thnx
shrinivas
Output is as expected but unable to move to next lesson

package main
import "fmt"

func division(x int, y int) {
var result float64
if y!=0 {
result = float64(x/y)
fmt.Printf("The result for the division of %d by %d is %0.2f",x,y,result)
} else {
fmt.Printf("You cannot divide a number by 0")
}
}

func main() {
division(12,4)
}


output:
The result for the division of 12 by 4 is 3.00

error pop up:
Your code's output does not match the expected outcome for this exercise.
sanchitobu4e
same is happening with we as with sriniwas Your code's output does not match the expected outcome for this exercise.

Login / Signup to Answer the Question.