Home » Archimedes archive » Acorn User » AU 1995-10.adf » !Regulars » Regulars/C/Factorial

Regulars/C/Factorial

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1995-10.adf » !Regulars
Filename: Regulars/C/Factorial
Read OK:
File size: 1600 bytes
Load address: 0000
Exec address: 0000
File contents
��������d����N�������L�0 ���4���������S�����0S���main�
����-��L�
]���M�������
��"��Q���P��P�-�@��������������[�Please enter a number to give the factorial function:
(between 1 and 15)

%dSorry - number out of range.
The answer is: %d
fact�
����-��L�
]��@��0�D������[�CL���������@-���4�����,��P�����
����-��L�x�����[鱈t���� ����0��@��P��R��a��V�j�`�Fe��h��
�+oh��V�@��Q��0��V���+��C62��C63@-����Y��@��P��Y�0�A�Q�0E0������h ��0���������� �� ���0�����`��V�g�`�Fe��h��
�jh��V�����������@����N����� ���������@����@-������h-�^����D��������H`��V�j�`�;�Ѓ��������t����������t�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������(�� �������������
00000000  00 00 a0 e1 00 00 a0 e1  00 00 a0 e1 83 00 00 eb  |................|
00000010  11 00 00 ef 9c 07 00 00  64 0e 00 00 00 00 00 00  |........d.......|
00000020  00 00 00 00 00 00 00 00  00 80 00 00 00 00 00 00  |................|
00000030  1a 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 a0 e1 0f c0 4e e0  0c c0 8f e0 0f 00 9c e9  |......N.........|
00000050  10 c0 4c e2 30 20 9c e5  01 0c 12 e3 34 c0 9c 15  |..L.0 ......4...|
00000060  00 c0 8c 00 01 c0 8c e0  00 00 a0 e3 00 00 53 e3  |..............S.|
00000070  0e f0 a0 d1 04 00 8c e4  04 30 53 e2 fb ff ff ea  |.........0S.....|
00000080  6d 61 69 6e 00 00 00 00  08 00 00 ff 0d c0 a0 e1  |main............|
00000090  10 d8 2d e9 04 b0 4c e2  0a 00 5d e1 ff 00 00 bb  |..-...L...].....|
000000a0  04 d0 4d e2 13 0f 8f e2  12 01 00 eb 1f 0f 8f e2  |..M.............|
000000b0  10 01 00 eb 0d 10 a0 e1  22 0f 8f e2 51 01 00 eb  |........"...Q...|
000000c0  00 00 9d e5 00 00 50 e3  03 00 00 da 0f 00 50 e3  |......P.......P.|
000000d0  2d 00 00 db 00 40 a0 d1  01 00 00 da 1a 0f 8f e2  |-....@..........|
000000e0  04 01 00 eb 04 10 a0 e1  1f 0f 8f e2 01 01 00 eb  |................|
000000f0  00 00 a0 e3 10 a8 5b e9  50 6c 65 61 73 65 20 65  |......[.Please e|
00000100  6e 74 65 72 20 61 20 6e  75 6d 62 65 72 20 74 6f  |nter a number to|
00000110  20 67 69 76 65 20 74 68  65 20 66 61 63 74 6f 72  | give the factor|
00000120  69 61 6c 20 66 75 6e 63  74 69 6f 6e 3a 0a 00 00  |ial function:...|
00000130  28 62 65 74 77 65 65 6e  20 31 20 61 6e 64 20 31  |(between 1 and 1|
00000140  35 29 0a 0a 00 00 00 00  25 64 00 00 53 6f 72 72  |5)......%d..Sorr|
00000150  79 20 2d 20 6e 75 6d 62  65 72 20 6f 75 74 20 6f  |y - number out o|
00000160  66 20 72 61 6e 67 65 2e  0a 00 00 00 54 68 65 20  |f range.....The |
00000170  61 6e 73 77 65 72 20 69  73 3a 20 25 64 0a 00 00  |answer is: %d...|
00000180  66 61 63 74 00 00 00 00  08 00 00 ff 0d c0 a0 e1  |fact............|
00000190  11 d8 2d e9 04 b0 4c e2  0a 00 5d e1 bf 00 00 bb  |..-...L...].....|
000001a0  00 40 a0 e1 01 00 30 e3  01 00 44 12 f6 ff ff 1b  |.@....0...D.....|
000001b0  94 00 00 10 01 00 a0 03  10 a8 5b e9 43 00 00 00  |..........[.C...|
000001c0  4c 00 9f e5 18 12 1a e5  01 00 80 e0 01 10 a0 e3  |L...............|
000001d0  00 10 c0 e5 00 40 2d e9  04 00 8d e2 34 10 9f e5  |.....@-.....4...|
000001e0  06 00 91 e9 bd 00 00 eb  2c 00 9f e5 00 00 50 e3  |........,.....P.|
000001f0  00 00 8f 12 00 80 fd e8  0d c0 a0 e1 00 d8 2d e9  |..............-.|
00000200  04 b0 4c e2 78 00 00 eb  0c 10 9f e5 b1 00 00 eb  |..L.x...........|
00000210  00 a8 5b e9 b1 88 00 00  74 87 00 00 8c 80 00 00  |..[.....t.......|
00000220  10 00 02 ef 01 20 a0 e1  90 11 9f e5 00 30 e0 e3  |..... .......0..|
00000230  00 40 a0 e3 00 50 e0 e3  52 0f 8f e2 80 61 9f e5  |.@...P..R....a..|
00000240  00 00 56 e3 01 6a a0 03  00 60 96 15 46 65 a0 e1  |..V..j...`..Fe..|
00000250  06 68 a0 e1 81 06 0a ef  2b 00 00 6f 06 68 a0 e1  |.h......+..o.h..|
00000260  06 08 56 e3 00 40 a0 a1  51 0f 8f a2 00 30 a0 a3  |..V..@..Q....0..|
00000270  56 00 00 aa 08 00 8f e2  2b 00 00 ef 90 0e 80 00  |V.......+.......|
00000280  43 36 32 00 91 0e 80 00  43 36 33 00 00 40 2d e9  |C62.....C63..@-.|
00000290  00 90 a0 e1 59 df ff eb  00 40 a0 e3 00 50 e0 e3  |....Y....@...P..|
000002a0  00 00 59 e3 0c 30 a0 03  18 41 9f 15 0c 51 9f 15  |..Y..0...A...Q..|
000002b0  04 30 45 10 0c 30 83 12  06 00 a0 e3 1e 00 02 ef  |.0E..0..........|
000002c0  00 80 bd 68 00 20 8c e5  00 30 82 e5 0c 90 a0 e1  |...h. ...0......|
000002d0  00 c0 9c e5 0c 10 8c e2  00 20 9c e5 01 20 82 e0  |......... ... ..|
000002e0  e4 30 9f e5 9c 00 8f e2  d4 60 9f e5 00 00 56 e3  |.0.......`....V.|
000002f0  01 67 a0 03 00 60 96 15  46 65 a0 e1 06 68 b0 e1  |.g...`..Fe...h..|
00000300  82 06 0a ef 08 00 00 6a  06 68 a0 e1 06 08 56 e3  |.......j.h....V.|
00000310  d7 ff ff ba 14 80 81 e2  80 01 98 e8 80 01 8c e9  |................|
00000320  00 40 a0 e1 88 00 8f e2  4e 00 00 ea 00 10 a0 e1  |.@......N.......|
00000330  07 00 a0 e3 0c 20 a0 e1  1e 00 02 ef 00 00 a0 e3  |..... ..........|
00000340  00 00 89 e5 01 00 a0 e1  00 40 bd e8 01 f2 9e e3  |.........@......|
00000350  00 40 2d e9 cc ff ff eb  00 80 bd 68 00 02 2d e9  |.@-........h..-.|
00000360  5e 00 00 eb 01 80 fd e8  44 00 8f e2 0c 80 a0 e1  |^.......D.......|
00000370  00 c0 e0 e3 48 60 9f e5  00 00 56 e3 01 6a a0 03  |....H`....V..j..|
00000380  00 60 96 15 3b 00 00 ea  01 00 00 00 d0 83 00 00  |.`..;...........|
00000390  90 84 00 00 9c 87 00 00  b8 8a 00 00 02 00 00 00  |................|
000003a0  90 84 00 00 74 87 00 00  b8 8a 00 00 00 96 00 00  |....t...........|
000003b0  ff ff ff ff 80 80 00 00  74 87 00 00 9c 87 00 00  |........t.......|
000003c0  00 96 00 00 00 00 00 00  9c 87 00 00 00 96 00 00  |................|
000003d0  00 f0 a0 e3 00 f0 a0 e3  00 f0 a0 e3 00 f0 a0 e3  |................|
*
00000770  00 f0 a0 e3 28 00 00 00  80 80 00 00 20 82 00 00  |....(....... ...|
00000780  bc 81 00 00 c0 81 00 00  00 00 00 00 90 84 00 00  |................|
00000790  94 84 00 00 98 84 00 00  9c 84 00 00 00 00 00 00  |................|
000007a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00001600