The binary value of an int number

Report a typo

Emma wants to create a Go program that takes as an input an int type number num and then uses a formatted print statement to output the binary value of num.

Please help Emma write the additional code to finish her Go program; below is the code she has written so far.

Sample Input 1:

42

Sample Output 1:

101010
Write a program in Go
package main

import "fmt"

func main() {
var num int
fmt.Scanln(&?)

fmt.Printf("%?", ?)
}
___

Create a free account to access the full topic