FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 82   



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)
}

Output:

Enetr first number:
 25
Enetr second number:
 22
Multiplication of given two numbers is:  550



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News