Skip to content

Instantly share code, notes, and snippets.

@cTxplorer
Created May 15, 2017 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cTxplorer/9a9413c18bb1fbc112ff1a4e8dbe7a88 to your computer and use it in GitHub Desktop.
Save cTxplorer/9a9413c18bb1fbc112ff1a4e8dbe7a88 to your computer and use it in GitHub Desktop.
/*
This is logical code snippet. It's language independent.
*/
C = 100
for i = 1 to n do
    for j = 1 to n do
    {
        Temp = A[i][j] + C
        A[i][j] = A[j][i]
        A[j][i] = Temp - C
    }
for i = 1 to n do
    for j = 1 to n do
        Output(A[i][j]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment