21 lines
483 B
C#
21 lines
483 B
C#
using System;
|
|
using System.IO;
|
|
using Microsoft.VisualBasic;
|
|
|
|
namespace Exercises_C_Sharp.E22_Dictionary
|
|
{
|
|
class Exercise_4
|
|
{
|
|
//Addieren Sie alle Value-Werte mit geraden Index auf und geben Sie das Ergebnis aus.
|
|
public static void Start()
|
|
{
|
|
Dictionary<int, double> dic = new() {{1, 14.85}, {2, 58.52}, {3, 8.63}, {4, 6.49}, {5, 62.85}, {6, 2.22}, {7, 3.33}, {8, 9.99}};
|
|
|
|
//Code Start
|
|
|
|
//Code ENDE
|
|
|
|
|
|
}
|
|
}
|
|
} |