myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
T

@TanishkaKumar

To print transpose of a 2-D matrix.

C
2 years ago
#include <stdio.h> int main(){ int a[3][3],i,j; for(i=0;i<3;i=i+1) { for(j=0;j<3;j=j+1) { scanf("%d",&a[i][j]);} } for(i=0;i<3;i=i+1) { for(j=0;j<3;j=j+1) { printf("%d\t",a[j][i]);
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us