How to Transpose of Matrix in Turbo C

  • How to Transpose of Matrix in Turbo C

  • 1 Comment sorted by


  • #include
    #include
    main()
    {
    int x,y;
    int z[3][3]={5,6,7,8,4,11,12,2,1};
    clrscr();
    printf("Original matrix is:\n");
    for(x=0;x<3;x++)<br /> {
    for(y=0;y<3;y++)<br /> {
    printf("%d ",z[x][y]);
    }
    printf("\n");
    }
    printf("Tranpose of the matrix is:\n");
    for(x=0;x<3;x++)<br /> {
    for(y=0;y<3;y++)<br /> {
    printf("%d ",z[y][x]);
    }
    printf("\n");
    }
    getch();
    }


Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Top Posters Weekly

Optimum Creative