Skip to content

Instantly share code, notes, and snippets.

View Qassas's full-sized avatar

Dr Wael Qassas Qassas

  • AABU
  • JORDAN
View GitHub Profile
// rotate 90 degrees
// Written By: Wael Qassas ,23-8-2016
// Original post: https://blog.svpino.com/2015/05/10/programming-challenge-rotating-a-matrix-90-degrees-in-place
#include <iostream.h>
int main()
{int i,j,temp;
const int N=5;
int A[][N]={{1,2,3,4,5},
{6,7,8,9,10},
{11,12,13,14,15},