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
What is triple constraint triangle?   Figure: -Project Management Triangle The Project Management triangle is depicted as Cost, Schedule & scope. These 3 aspects for

What is a Cloud Service? A cloud service is used to build cloud applications. This service gives the facility of using the cloud application without installing it on the comput

What are the precautions by which SQLSERVER Mode work properly Following are the things to keep in mind so that the SQLSERVER Mode works properly:- A) In the SQLSERVER mode,

I have a responsive database structure and web template. I need someone to prepare the code (.net, jquery ) to make interaction with database . Insert, edit , save . Plus a custom

Project Description: This project uses Microsoft Visual Studio 2010/2012, Internet Information Services (IIS) Manager and Microsoft SQL Server Management Studio. It is a Mobi

What is ACID fundamental? What are transactions in SQL SERVER? The transaction is a sequence of operations performed as a single logical unit of work..The logical unit of work

What is DCOM? DCOM is different from COM in that it allows for creating objects distributed around  a network, and a protocol for invoking that object's methods, & secures the

Define the ToolTip control. How can you associate it with other controls? The ToolTip control produces a small pop-up window with explanatory text for an element it is displaye

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

ILDASM When it comes to the understanding of the internals nothing can beat ILDASM. ILDASM  converts all the exe or dll into IL code. To run ILDASM you have to go to "C:\Progra