FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 50   



Following program shows you how to convert rupees to dollars
In this program we get rupees from user, once we get those we need to divide with 64 so that we get in dollars

package main

import "fmt"

func main() {

  var rupees float64
  var dollars float64
  fmt.Println("Please enter rupees:")
  fmt.Scanf("%f", &rupees)
  dollars = rupees / 64
  fmt.Println(dollars , " Dollars")
}

Output:

Please enter rupees:
 5000
78.125  Dollars



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News