Merge pull request #79 from xexyl/2000-primenum

Make 2000/primenum more portable
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-03-18 22:58:09 -07:00
commit 94b05e96fd
2 files changed
+7 -2

No files matched your search

+5
View File
@@ -10,6 +10,11 @@
make
```
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) made this more
portable by changing the return type of `main()` to be `int` not `void`. Thank
you Cody for your assistance!
### To run:
```sh
+2 -2
View File
@@ -1,8 +1,8 @@
#define BeginProgram void main(int argc, char *argv[])
#define BeginProgram int main(int argc, char *argv[])
#define CloseBrace }
#define CommandLineArgument -1
#define Declare int i,j,n,Flag=1;
#define EndOfProgram return;
#define EndOfProgram return 0;
#define False 0;
#define ForLoop ;for
#define GetCommandLineArgument n=atoi(argv[1]);