Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- /*
- * Ontwerp een toepassing waarmee je een ingevoerd bedrag
- * in euros kan omrekenen naar dollar.
- * Gebruik hierbij de volgende wisselkoers: 1000 EUR = 1193USD.
- * Werk met gehele getallen.
- * Het resultaat in de console wordt als volgt weergegeven:
- * “X EUR is gelijk aan Y USD”.
- */
- namespace random_ForPasteBin
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- {
- int euroVal, dollarVal;
- Console.WriteLine("Geef hier het bedrag in Euro in: ");
- string userInput = Console.ReadLine();
- euroVal = int.Parse(userInput);
- dollarVal = euroVal * 1193 / 1000;
- Console.WriteLine("{0} Euro is gelijk aan {1} Dollar", euroVal, dollarVal );
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement