Go Arithmetic Operators convert feet into meters:

Description

Go Arithmetic Operators convert feet into meters:

package main //from   w  ww  .j  a v  a2  s.  c  om

import "fmt" 

func main() { 
   fmt.Print("Enter a number: ") 
   var input float64 
   fmt.Scanf("%f", &input) 

   output  := input * 0.3048 

   fmt.Println(output) 
} 



PreviousNext

Related