integer a,b,c(10) ↓ int a,b,c[11];
real a,b,c(10) real*8 x ↓ double a,b,c[11],x;
integer maxn real x0 parameter (maxn=100, x0=0.0) ↓ #define MAXN 100 #define X0 0.0ちなみに
real a(10000) ↓ int n; double *a; ... n = 今回の実行で本当に必要な量 a = malloc(sizeof(double) * n); if (a == NULL) エラー処理 ...
int a dimension a(1000) ↓ int a[1001];
read(*,*) n,a ↓ scanf("%d %lf", &n, &a); あるいは char buf[1024]; .... fgets(buf, sizeof(buf), stdin); sscanf(buf, "%d %lf", &n, &a);
write(*,*) n,a ↓ printf("%d %f\n", n, a);
write(*,1000) n,a,b 1000 format(' ', I5, ' ', 2F14.5) ↓ printf(" %5d %14.5f%14.5f\n", n, a, b);
do 10 i=1,10 do 20 j=N0,N1,N2 むにゃむにゃ 20 continue 10 continue ↓ for (i = 1; i <= 10; i++) for (j = N0; j <= N1; j += N2) { むにゃむにゃ }
#define
に
integer n real a parameter (n=100, a=1.0) ↓ #define N 100 #define A 1.0
integer mm(0:n) ↓ int mm[N+1];
↓ int n,n1,nn,j,k; double x0, a;