User Profile

Collapse

Profile Sidebar

Collapse
asgard0422
asgard0422
Last Activity: Apr 26 '08, 10:36 AM
Joined: Apr 26 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • asgard0422
    replied to Rookie needs help~~~
    in C
    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);...
    See more | Go to post

    Leave a comment:


  • asgard0422
    started a topic Rookie needs help~~~
    in C

    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. ...
    See more | Go to post
No activity results to display
Show More
Working...