# Go program to find Square of a Number

This Go program to find the Square of a Number allows users to enter a numeric value. Next, it used the Arithmetic multiplication operator to find the square of that number.

```package main

import "fmt"

func main() {

var sqnum int

fmt.Print("Enter the Number to find Square = ")
fmt.Scanln(&sqnum)

sqr := sqnum * sqnum

fmt.Println("\nThe Square of a Given Number  = ", sqr)
}```
``````Enter the Number to find Square = 9

The Square of a Given Number  =  81``````

## Golang program to find Square of a Number

This golang program creates a new function that returns the square of the given number.

```package main

import "fmt"

func findSquare(x int) int {
return x * x
}
func main() {

var sqnum int

fmt.Print("Enter the Number to find Square = ")
fmt.Scanln(&sqnum)

sqr := findSquare(sqnum)

fmt.Println("\nThe Square of a Given Number  = ", sqr)
}```
{"ft_lang_label":"__label__en","ft_lang_prob":0.5848264,"math_prob":0.9993445,"size":817,"snap":"2021-43-2021-49","text_gpt3_token_len":200,"char_repetition_ratio":0.18696187,"word_repetition_ratio":0.32394367,"special_character_ratio":0.2619339,"punctuation_ratio":0.09090909,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99791765,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-28T02:20:21Z\",\"WARC-Record-ID\":\"<urn:uuid:a3404d42-75d4-49ad-837b-2f93dc9606b2>\",\"Content-Length\":\"76790\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fe0a0809-858d-41de-85cc-9e80ddff8ea0>\",\"WARC-Concurrent-To\":\"<urn:uuid:de5f83f6-9c73-495f-a4d8-8721f64af718>\",\"WARC-IP-Address\":\"104.26.1.203\",\"WARC-Target-URI\":\"https://www.tutorialgateway.org/go-program-to-find-square-of-a-number/\",\"WARC-Payload-Digest\":\"sha1:66FLXDIJ7AWTUN43UJEOKATNMKEHCLOL\",\"WARC-Block-Digest\":\"sha1:SVBBMJE6EWX4RL7ZEGMDWTXAP5VQ2F3R\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323588246.79_warc_CC-MAIN-20211028003812-20211028033812-00478.warc.gz\"}"}