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

How do I write common code for different dot net framework data providers?

Computer programming Project Description: Solving some issues about traffic jam Skills required: C# Programming, Java, C++ Programming, PHP, Software Architecture

What is the use of "Must Inherit" keyword in VB.NET? If you want to create an abstract class in the VB.NET it is done by using the "MustInherit" keyword.You can't create an obj

What is black box testing & White box testing? The Black box testing is also termed as functional testing. It ignores how the internal functionality of a system works & depends

What is the difference between DELETE TABLE and TRUNCATE TABLE commands? Following are differences between delete & truncate commands:- 1)The DELETE TABLE syntax logs the de

Describe the XmlWriter class. The XmlWriter class is used to write XML to a stream, a file, or a Textwriter object. This class works in a forward-only, non-cached manner. You c

Reversing the Numbers - C# Program Hello guys i need your advice. How can i reverse the integer number in c# project? Please recommend some examples.

Demonstrating use of break, continue & goto - C# Program How can i use break, continue & goto in my assignment, I am looking for a program in C#. It would be feel great if any

How inheritance is achieved in VB.NET? The Inheritance is achieved by using "Inherits" keyword in the VB.NET (& For C# it is ":"). Easy Sample is provided in CD for understandi