Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ok
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ZH_minta { class Program { private static Exception exeption1; private static bool asd; static void Main(string[] args) { int krokodilszam = 0; Console.WriteLine("Hány krokodil van?"); do { try { asd = false; krokodilszam = int.Parse(Console.ReadLine()); if (krokodilszam < 1) throw exeption1; } catch (Exception) { Console.WriteLine("asd"); asd = true; //throw; } } while (asd); Versenyzok elsoNap = new Versenyzok(krokodilszam); for (int i = 0; i < krokodilszam; i++) { Console.WriteLine(elsoNap[i]); } Console.WriteLine(elsoNap.Nyertes()+". krokodi a nyertes"); Console.WriteLine(elsoNap.versenyzoTomb[elsoNap.Nyertes()].UtolsoLepes()); Console.WriteLine(elsoNap.versenyzoTomb[elsoNap.Nyertes()].LepesekSzama()); //Console.WriteLine("asd"); Console.ReadLine(); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
String to Decimal CSHARP
find the index of the substring "fir" - Seeni
Intuit // C# // listing_4.3 (StreamWriter // output.txt)
Delegates
code1
CommandForce3
Invoke method via reflection
Generic Type Foreach and Exceptions
Find the missing number in an array2
111
Please log in to post a comment.