This is an example hello world C program.
We can define codeblocks with ---
Some example flow diagram:
some text.
int main()
{
▶ 1. Print a string
return 0;
}
Used in:
Now we can define the Includes
codeblock:
#include <stdio.h>
Used in:
Finally, our program needs to print "hello world"
printf("Hello, world!\n");
Used in:
#!/bin/sh gcc hello.c -o hello
to run : just enter command sh run.sh
to run.
#!/bin/sh sh ./compile.sh ./hello
Should show an output that looks like this:
Just copy the hello
file and run it!
OR run the command:
$ sh run.sh