C# program to convert rupees to dollars

Views: 549   

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

using System;

class MainClass {
  public static void Main (string[] args) {
    Console.WriteLine ("Please enter rupees:");
    double rupees = Convert.ToDouble(Console.ReadLine());
    double dollars = rupees / 64;
    Console.WriteLine(dollars + " Dollars");


Please enter rupees:
78.125 Dollars
On By