Hi everyone. im new to programming (only few weeks).
And i was given this coursework to find out the rotation of a matrix(2d). so i know, mathematically i have to multiply the sine & cosine matrix with the matrix to be rotated.
so than i would generate a new matrix(which i have to display).
i tried it. the output wasnt what i wanted. so i edited it (loads of times)
please help. this is the code so far. i know its kinda rubbish, but i have edited it a lot, and now im not sure where ive wound up.
and the error props in line 11..which is where ive declare r
#define DEG 0.0174532925199432958;
printf(" 2d matrix rotation program\n");
printf("Please enter the angle in degrees you want the matrix to be rotated\n");
printf("Enter the data for row no. %2d\n",i+1);
printf("The rotated matrix is:\n");