Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp11
- {
- public class dane
- {
- int[,] tab = new int[1, 9];
- public void zapelnij()// inicalizajca wartosci
- {
- for(int i =0;i<1;i++)
- {
- for(int j =0;j<9;j++)
- {
- tab[i, j] = i + j;
- }
- }
- }
- public int max_tablicy()
- {
- int max = 0;
- for (int i = 0; i < 1; i++)
- {
- for (int j = 0; j < 9; j++)
- {
- if(tab[i,j]>max)
- {
- max = tab[i, j];
- }
- }
- }
- return max;
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- dane nowa = new dane();
- nowa.zapelnij();
- Console.WriteLine(" " + nowa.max_tablicy());
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement