Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - A very simple fortran programming problem
A very simple fortran programming problem
1. Not all compilers support integers (8). You need to read the help documentation of the compiler you are using to find out what data types it supports.

2. Even if integer(8) is supported, i = i * 1.00 1 cannot be used, because integers are always integers, no matter how many bytes there are, they can never represent decimals, but only integers. More bytes can only represent larger integers, not real numbers.

3. Even if it is a real number, multiplying it by 1.00 1 will get bigger and bigger, and it will always be a positive number and never be less than 0. Your program will fall into an infinite loop.