Ch (computer programming): Difference between revisions

Content deleted Content added
mNo edit summary
"Hello, world!" in Ch: removed the shebang line, not necessary
Line 20:
There are two ways to run Ch code. One is:
 
<nowiki>#</nowiki>!/bin/ch
printf("Hello world!\n");
 
Another is:
 
<nowiki>#</nowiki>!/bin/ch
#include <stdio.h>
int main() {
printf("Hello world!\n");
}
 
Note: <nowiki>#</nowiki>!/bin/ch is optional.
 
Ch also supports interactive shell command and C statements.