Home » Archimedes archive » Acorn User » AU 1994-09.adf » !Extras_Extras » c/Prog4
c/Prog4
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 1994-09.adf » !Extras_Extras |
Filename: | c/Prog4 |
Read OK: | ✔ |
File size: | 00C9 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
/* Program 4 */ #include <stdio.h>; main() { /* Set up the variables used */ char i; printf"Please input a letter "; scanf("%s",&i); printf("ASCII value is %d",i); }
00000000 2f 2a 20 50 72 6f 67 72 61 6d 20 34 20 2a 2f 0a |/* Program 4 */.| 00000010 23 69 6e 63 6c 75 64 65 20 3c 73 74 64 69 6f 2e |#include <stdio.| 00000020 68 3e 3b 0a 0a 6d 61 69 6e 28 29 0a 7b 20 20 20 |h>;..main().{ | 00000030 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000040 20 20 20 20 20 20 20 20 2f 2a 20 53 65 74 20 75 | /* Set u| 00000050 70 20 74 68 65 20 76 61 72 69 61 62 6c 65 73 20 |p the variables | 00000060 75 73 65 64 20 2a 2f 0a 20 20 63 68 61 72 20 69 |used */. char i| 00000070 3b 0a 0a 20 20 70 72 69 6e 74 66 22 50 6c 65 61 |;.. printf"Plea| 00000080 73 65 20 69 6e 70 75 74 20 61 20 6c 65 74 74 65 |se input a lette| 00000090 72 20 22 3b 0a 20 20 73 63 61 6e 66 28 22 25 73 |r ";. scanf("%s| 000000a0 22 2c 26 69 29 3b 0a 20 20 70 72 69 6e 74 66 28 |",&i);. printf(| 000000b0 22 41 53 43 49 49 20 76 61 6c 75 65 20 69 73 20 |"ASCII value is | 000000c0 25 64 22 2c 69 29 3b 0a 7d |%d",i);.}| 000000c9