C# program to convert dollars to rupees

Views: 439   

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

using System;

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


Please enter dollars:
64000 Rupees
On By