private static void PrintEuroEquivalent(double euro) {
double dollar = euro * 1.0989;
Console.WriteLine("Van {0} euro krijg je {1} dollar.", euro, dollar);
private static double BerekenEquivalent(double euro) {
Console.WriteLine("Ik geef {0} euro .", euro );
public static void Main()
double dollar = BerekenEquivalent(2);
Console.WriteLine("Ik krijg {0} terug.", dollar);
dollar = BerekenEquivalent(6);
Console.WriteLine("Ik krijg {0} terug.", dollar);