Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp7
- {
- class Program
- {
- static void Main(string[] args)
- {
- int x = Convert.ToInt32(Console.ReadLine());
- int y = Convert.ToInt32(Console.ReadLine());
- funkcja1(x, y);
- char[] tab = new char[8] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' };
- funkcja2(tab);
- }
- public static void funkcja1 (int x, int y)
- {
- if (x>y)
- {
- Console.WriteLine(x);
- }
- else
- {
- Console.WriteLine(y);
- }
- }
- public static void funkcja2(char [] tab)
- {
- Array.Reverse(tab);
- for (int i = 0; i < tab.Length; i=i+2)
- {
- Console.Write(tab[i]+" ");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement