Online Golfscript Tester
Enter your GolfScript program here (max 1024 chars) or
try a sample program
:
Program (
sample
):
1nt main(){ int a = 2, b = 2; int aMod,bMod; //The next line should throw and error, but why doesn't it??/ aMod = (a*a - b*b) / (a-b); //The next line should throw and error, but why doesn't it??/ bMod = (b*a - b*b) / (a-b); //The if should fail, but it works??/ if(aMod == bMod) printf("1"); return 0; };
-
Run
Copy Link
Program output:
×
The link for this script has been copied to your clipboard.