Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ObjectsExercises
- {
- class Program
- {
- static void Main(string[] args)
- {
- int number = int.Parse(Console.ReadLine());
- string[] Phrases = new string[] { "Now I feel good.",
- "I have succeeded with this product.",
- "Makes miracles. I am happy of the results!",
- "I cannot believe but now I feel awesome.",
- "Try it yourself, I am very satisfied.",
- "I feel great!"};
- string[] Events = new string[] { "Now I feel good.",
- "I have succeeded with this product.",
- "Makes miracles. I am happy of the results!",
- "I cannot believe but now I feel awesome.",
- "Try it yourself, I am very satisfied.",
- "I feel great!" };
- string[] Authors = new string[] { "Diana", "Petya", "Stella", "Elena", "Katya", "Iva", "Annie", "Eva" };
- string[] Cities = new string[] { "Burgas", "Sofia", "Plovdiv", "Varna", "Ruse" };
- Random num = new Random();
- for (int i = 0; i < number; i++)
- {
- int PhraseIndex = num.Next(0, Phrases.Length);
- int EventIndex = num.Next(0, Events.Length);
- int AuthorIndex = num.Next(0, Authors.Length);
- int CityIndex = num.Next(0, Cities.Length);
- Console.WriteLine(Phrases[PhraseIndex] + " " + Events[EventIndex] + " " + Authors[AuthorIndex] + " - " + Cities[CityIndex]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement