Make 2000/primenum more portable

This was done by making main() return type int not void.
This commit is contained in:
Cody Boone Ferguson committed 2023-03-18 04:47:53 -07:00
1 parent 83ff856bc9
commit 9dadc58737
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]);