SHARE
TWEET

Untitled

a guest Jun 16th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Linq;
  3. using System.Numerics;
  4.  
  5. namespace bitShiftMatrix
  6. {
  7.     class Program
  8.     {
  9.         static void Main(string[] args)
  10.         {
  11.             int inputRows = int.Parse(Console.ReadLine());
  12.             int inputCols = int.Parse(Console.ReadLine());
  13.             int sizeOfArray = int.Parse(Console.ReadLine());
  14.             double[] size = Console.ReadLine().Split(' ').Select(double.Parse).ToArray();
  15.             int step = 0;
  16.             BigInteger[,] matrix = new BigInteger[inputRows, inputCols];
  17.  
  18.             BigInteger coef = Math.Max(inputRows,inputCols);
  19.  
  20.             for (int rows = inputRows - 1; rows >= 0; rows--)
  21.             {
  22.                 for (int cols = 0; cols < inputCols; cols++)
  23.                 {
  24.                     matrix[rows, cols] = (BigInteger)Math.Pow(2, cols + rows);
  25.                 }
  26.             }
  27.             Console.WriteLine(matrix[3,0]);
  28.             for (int rows = inputRows - 1; rows >= 0; rows--)
  29.             {
  30.                 for (int cols = 0; cols < inputCols; cols++)
  31.                 {
  32.                     Console.Write(matrix[rows, cols] + " ");
  33.                 }
  34.                 Console.WriteLine();
  35.             }
  36.         }
  37.     }
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top