Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ytre
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//gcc 5.4.0 #include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; }https://play.google.com/store/apps/details?id=vrpatel0018.cprograms /*Addition of two matrix*/ /*Use of Two-Dimensional array*/ #include<stdio.h> int main() { int a[3][3],b[3][3],c[3][3],i,j; //declaration of Two-Dimensional array printf("Enter element of first matrix are\n"); for(i=0;i<3;i++){ for(j=0;j<3;j++){ scanf("%d",&a[i][j]); } } printf("Enter element of second matrix are\n"); for(i=0;i<3;i++){ for(j=0;j<3;j++){ scanf("%d",&b[i][j]); } } for(i=0;i<3;i++){ for(j=0;j<3;j++){ c[i][j]=a[i][j]+b[i][j]; } } printf("Additiion of two matrix is as follow:\n"); for(i=0;i<3;i++){ printf("\n"); for(j=0;j<3;j++){ printf("\t%d",c[i][j]); } } }
gcc
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
Compilation time: 0.13 sec, absolute service time: 0,21 sec
edit mode
|
history
|
discussion