sure. but i tried ages . but it worked for 3. and 5. but wont work for more than 5..i am so ......
here is the program i had
#include<stdio. h>
#include<math.h >
int main (void)
{
int i=0,j=0,k=0,l,m , a[100][100],sum=0,z=0,p=0, b=1,q,c=0;
int j_increment, i_increment;
printf("Please define the size of the matrix:");
scanf("%d",&m);...
User Profile
Collapse
-
Rookie needs help~~~
i am just starting c++ few weeks ago, and i am facing a matrix problem now.
the program has to be built so that the user can select the size of the matrix but it will only be odd numbers.such as 1,3,7 etc
then the out put of the matrix needs to be
9 2 3
8 1 4
7 6 5
in this form
the middle element needs to be the 1 and then it assign values in a cyclic format. ...
No activity results to display
Show More
Leave a comment: