Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 24th, 2012  |  syntax: C#  |  size: 1.33 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Collections;
  6.  
  7. namespace ConsoleApplication1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             char r;
  14.             do
  15.             {
  16.                 double[][] mas;
  17.                
  18.                 int a, i;
  19.                 ArrayList masd;
  20.                 masd = new ArrayList();
  21.  
  22.                 mas = new double[5][];
  23.                 for (i = 0; i != 5; i++)
  24.                 {
  25.                     Console.WriteLine("введите количество эелементов строки");
  26.                     a = int.Parse(Console.ReadLine());
  27.                     mas[i] = new double[a];
  28.                 }
  29.                 Console.WriteLine("исхоодный масив масивов:");
  30.                 methods.zap(mas);
  31.                 Console.WriteLine();
  32.                 methods.viv(mas);
  33.                 Console.WriteLine();
  34.                 Console.WriteLine("масив положительных чисел:");
  35.                 methods.opr(mas);
  36.                 Console.WriteLine(" для продолжения нажмиет y");
  37.                 r = char.Parse(Console.ReadLine());
  38.                 Console.WriteLine();
  39.             } while (r == 'y');    
  40.         }
  41.     }
  42. }