ex8.ox (238B)
1 // nested ifs 2 3 void main() { 4 int a = 10; 5 if(1 == 1) { 6 if(a == 11) { 7 print("this is wrong"); 8 } else { 9 print("this is right"); 10 } 11 } 12 } 13 14 // void test() { 15 // print("test 2"); 16 // }
oxThe Ox programming language, compiler and tools (WIP) | |
| Log | Files | Refs | README | LICENSE |