This is my new program, it raise RF :cry: :cry: :cry:
[pascal]
type bigint=array[1..1500] of byte;
var skt:array[0..5000] of word;
a:array[0..5000] of bigint;
max,i,j,n:word;
procedure cong(x,y,z:word);
var i:integer;
nho:byte;
so:byte;
max:byte;
begin
fillchar(a[z],sizeof(a[z]),0);
nho:=0 ...
Search found 6 matches
- Thu Nov 18, 2004 3:10 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 60662
- Thu Nov 18, 2004 3:01 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 60662
- Thu Nov 18, 2004 2:50 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 60662
Your program's output for the sample input doesn't match the sample output (off by one) and should contain the whole phrase "The Fibonacci number for ... is ...'.
It prints only spaces for big values of n. Zero (0) is a valid input and your program shouldn't stop but print 'The Fibonacci number for ...
It prints only spaces for big values of n. Zero (0) is a valid input and your program shouldn't stop but print 'The Fibonacci number for ...
- Thu Nov 18, 2004 9:37 am
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 60662
- Wed Nov 17, 2004 3:55 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 60662
- Wed Nov 17, 2004 2:20 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 60662
495 Can't write in PASCAL ?
I saw many topics in this box about that problem, and all of them are written in C/C++/Java, so they can define a bigint type ( an 1000-digits array )
But in PASCAL, I can't define any array like that:
type bigint = array[1..1000] of byte;
var a:array[0..5000] of bigint;
this code raise "too many ...
But in PASCAL, I can't define any array like that:
type bigint = array[1..1000] of byte;
var a:array[0..5000] of bigint;
this code raise "too many ...