Program.cs 522 Bytes
Newer Older
Uwe Wienkop's avatar
Uwe Wienkop committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
using System;

namespace _08DelegateIntro
{
    class Program
    {
        static void Tabelle(double von, double bis)
        {
            for (double x = von; x <= bis; x += (bis - von) / 5.0)
                Console.WriteLine($"{x,6:f2} | {Math.Sin(x),10:f4}");
            Console.WriteLine("-------------------");
        }
        static double MeinQuadrieren(double x)
        {
            return x * x;
        }
        static void Main(string[] args)
        {
            Tabelle(1, 6);
        }
    }
}