Run Code
|
API
|
Code Wall
|
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
IEquatable_resolved
asasa
Unary example
Binary Hex Decimal Systems
Math 5.83
1
multiplyarr
animal
C# Basic learning
derfgtredwcdf