Debug program

Report a typo

Class 36 bureaucrat Hermes Konrad loves order and hot peppers. He also likes to count how many times the number 36 fits into the numbers that he sees during the day. And if the number is divided without a remainder, then he asks his wife to add 1 more hot pepper to dinner. But after his son and Cubert played with the Go calculator, it completely stopped working. Help him debug the program.

Sample Input 1:

36

Sample Output 1:

Pepper

Sample Input 2:

4

Sample Output 2:

No
Write a program in Go
package main

import "fmt"

const (
class = 36
pepper = "Pepper"
no = "No"
)

func main() {
var number string
fmt.Scanln(&number)

switch class % number {
case 0:
fmt.Println(pepper)
case 1, 8, 10, 35:
fmt.Println("Pepperoni")
default:
fmt.Println(no)
}
}
___

Create a free account to access the full topic