CC/tester/testsuite/good/core012.jl
Jeena Paradies 063194f8be first commit
2011-04-19 11:37:05 +02:00

26 lines
No EOL
424 B
Julia

/* Test arithmetic and comparisons. */
int main() {
int x = 56;
int y = -23;
printInt(x+y);
printInt(x-y);
printInt(x*y);
printInt(45/2);
printInt(78%3);
double z = -9.3;
double w = 5.1;
printBool(z+w > z-w);
printBool(z/w <= z*w);
return 0 ;
}
void printBool(boolean b) {
if (b) {
printString("true");
return;
} else {
printString("false");
return;
}
}