6.perform Matrix Operations Using Object: System System - Collections.Generic System - Linq System - Text
6.perform Matrix Operations Using Object: System System - Collections.Generic System - Linq System - Text
6.perform Matrix Operations Using Object: System System - Collections.Generic System - Linq System - Text
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp12
{
class Matrix
{
public
int row, col;
int[,] a = new int[10, 10];
class trans
{
public static void Main(string[] args)
{
Matrix m = new Matrix();
m.get();
m.display();
m.transpose();
Console.ReadKey();
}
}
}
Output:
9.Implement Operator Overloading
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace overloading
{
class Calculate
{
public int n1, n2;
public Calculate(int no1, int no2)
{
n1 = no1;
n2 = no2;
}