Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.Write("Kérem adjon meg egy napot: ");
- string beNap = Console.ReadLine();
- Console.Write("Kérem adjon meg egy óra számot: ");
- int beOra = Convert.ToInt32(Console.ReadLine());
- int c = 0;
- for (int i = 0; i < n; i++)
- {
- if (MelyikNap(honap[i], nap[i]) == beNap)
- {
- if(beOra < 0 || beora > hianyzas[i].Length-1){
- {
- Console.WriteLine("Nincsen {0}. óra", beOra);
- }
- else
- {
- if(!(hianyzas[i][beOra] == 'O' || hianyzas[i][beOra] == 'N'))
- {
- c++;
- }
- }
- }
- }
- Console.WriteLine("{0}ként, a(z) {1}. órákban {2} hiányzás volt összesen", beNap, beOra, c);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement