Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
BFS DFS stack vs recursive
Regras Recad grupo
Frase
Brainf*ck interpreter
sss
Expression Tree - Demo1
Cast int to enum in C#
compiled prog
linear search
Konsol Kelebek Deseni
stackse - search stackoverflow differently
Please log in to post a comment.