Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string[] buch = new string[5];
  14.             for (int i = 0; i < 5; i++)
  15.             {
  16.                 Console.WriteLine("Geben Sie einen Buchtitel ein!");
  17.                 buch[i] = Console.ReadLine();                
  18.             }
  19.             Console.WriteLine("Ihre gewählten Buchtitel:");
  20.             foreach (string x in buch)
  21.             {
  22.                 Console.Write(x+", ");
  23.             }
  24.             Console.ReadLine();
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement