HOME

Start

Control Statements

Array

Function

Structure

Pointer

File

Projects

 

 

 

 

 

 

C programing

Ckalari.com is the No.1 website to get the best of C programs, free source codes, projects in c language……  

A C program  to find transpose of matrix

#include<stdio.h>

#include<conio.h>

void main()

     {

    int m[100][100],r,c,i,j;

    clrscr();

    printf("How many ROW and COLUM\n");

    scanf("%d%d",&r,&c);

    printf("\nEnter the Matrix\n");

    for(i=0;i<r;i++)

    {

      for(j=0;j<c;j++)

      {

        scanf("%d",&m[i][j]);

      }

    }

    printf("\nThe transpose is\n");

    for(i=0;i<r;i++)

    {

      for(j=0;j<c;j++)

      {

        printf("%d ",m[j][i]);

      }

      printf("\n");

    }

    getch();

     }

Copyright © 2007-2008 www.ckalari.com