Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Check identity matrix or not?
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
! Shahir Tanbir Habib real a(3,3) print*,'inputed matrix which you want to test ' data a/1,2,3,4,5,6,7,8,9/ do i=1,3 do j=1,3 if(i.eq.j) then if(a(i,j).ne.1)then goto 20 endif endif if(i.ne.j) then if(a(i,j).ne.0) then goto 20 endif endif Enddo Enddo print*,' is Identity' stop 20 print*,' is not Identity' end
Show compiler warnings
[
+
]
Show input
Compilation time: 0.14 sec, absolute running time: 0.38 sec, cpu time: 0.31 sec, memory peak: 3 Mb, absolute service time: 0,53 sec
edit mode
|
history
|
discussion
inputed matrix which you want to test is not Identity