Converting $ into rs. - c# program, DOT NET Programming

Converting $ into Rs.  - C# Program

I am a learner of C# language and i am struggling with how to convert $ into Rs. in C#. Can you have any code examples for this?

Posted Date: 2/12/2013 12:13:54 AM | Location : United States





using System;  

class DollarToRupees

{

  public static void Main()

 {

   float dol,rs,current;

   int i;  

  Console.Write("What is the current value of 1 $ as per INDIAN Rs. : ");

  current = float.Parse(Console.ReadLine());  

  Console.WriteLine(""); // Blank Line  

   for (i=1;i<=5;i++)

  {

   Console.Write("Enter value " + i + " in Dollars : ");

   dol = float.Parse(Console.ReadLine());

   rs = dol * current;

   Console.WriteLine(dol + " $ = " +rs + "Rs.");

   Console.WriteLine(""); // Blank Line

  }  

  Console.ReadLine();

 }

}

Posted by Jack | Posted Date: 2/12/2013 12:15:14 AM


Related Discussions:- Converting $ into rs. - c# program, Assignment Help, Ask Question on Converting $ into rs. - c# program, Get Answer, Expert's Help, Converting $ into rs. - c# program Discussions

Write discussion on Converting $ into rs. - c# program
Your posts are moderated
Related Questions
Concept of Boxing and Unboxing The Boxing permits any value type to be implicitly converted to type object or to any other interface type implemented by the value type. The Box

What is an object? They are instance of classes. It is a basic unit of a system. An object is an entity that has attributes, behavior, and identity. Attributes and behavior of

What's the difference b/w Unit testing, Assembly testing and Regression testing? The Unit testing is also known as the Component testing. The Unit testing ensures that the reli

Help with making a wrapper in c# for ffmpeg to extract audio from video

Question: (a) What is VB.NET 2005 and explain the versions of VB.NET. Name the four different types of applications that new version of VB.NET can create. (b) Using the

What are the steps to create a webservice? This webservice will add 2 numbers and send  to the calling client.All the below steps shown are according to VS2005 beta editor :-


What are code contracts? Code contracts help you to state the code assumptions and statements stating the behavior of your code in a language-neutral way. The contracts are con

Mention the name of the directory where it is essential to locate the proxy file to use a Web service. The proxy file must be kept in the /bin directory. This directory is situ

What are similarities between Class and structure? The similarities between structures and classes are as follows:- 1) Both can have constructors, properties, methods, field