Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
euler-cromer
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
!gfortran, gcc version 5.4.0 20160609 program euler_cromer implicit none integer, parameter :: DP=8 real(DP) :: x, v, h, a,t integer :: i, j x=1.0_DP v=-1.0_DP t=0.0_DP write(*,*)t,x,v h=0.001_DP a=-x do i=1,15 v=v+a*h x=x+v*h a=-x t=t+h write(*,*)t,x,v if(i.eq.5) v=-v end do end program
Show compiler warnings
[
+
]
Show input
Compilation time: 0.13 sec, absolute service time: 0,21 sec
edit mode
|
history
|
discussion
Error(s):
source_file.f:21:1: a-x 1 Error: Unclassifiable statement at (1)