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
Task on data mining Project Description: Task on Opinion Mining, Sentiment Analysis Skills required are C# Programming, Software Architecture, Data Mining

Project Description: Looking for a JQuery expert that will develop a customizable product selection page to work with our asp.net website. Product selection, size, quantity, pri

What is Thread.Join() in threading? There are 2 versions of Thread.Join :- Thread.join(). Thread.join(Integer) this returns a Boolean value. The Thread.Join

. write a program for displaying the total no of characters, words and sentences in a given file

What is Difference between NameSpace and Assembly? Following are the differences among namespace and assembly: Assembly is physical grouping of logical units, Namespace, log

Looking for web designer Project Description: I am seeking website designer with developing skills of Html, .Net and also supports in all browsers. Please ping your previous

How many types of validation controls are provided by ASP.NET   The six main types of validation controls are as follows:- 1) Required Field Validator: This validator che

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

Web Developer Project Description: We are in need of an expert web developer for long term connection; please apply with samples if you have the subsequent skills: ASP.NET

What is the difference between "DataSet" and "DataReader"? The major differences between "DataSet" and "DataReader" are as follows:- 1)The "DataSet" is a disconnected archit