logo image

Go language program to multiply given two numbers

Views: 13

Following program shows you how to multiply given two numbers. In this program we get inputs from user and multiplies those two inputs

package main

import "fmt"

func main() {

  var input1 int
  var input2 int
  var result int
  fmt.Println("Enetr first number:")
  fmt.Scanf("%d", &input1)
  fmt.Println("Enetr second number:")
  fmt.Scanf("%d", &input2)
  result = input1 * input2;
  fmt.Println("Multiplication of given two numbers is: " , result)


Enetr first number:
Enetr second number:
Multiplication of given two numbers is:  550
We are looking for Interns!
Send your resumes to
[email protected]