Try   HackMD

Google Colaboratory 執行C語言程式

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
初階入門者必備

[]!gcc --version
[]!ls

[]%%writefile hello.c

#include <stdio.h>

int main(void) {
    printf("Hello! World!\n");
    printf("哈囉!C 語言!\n");

    return 0;
}

[]!gcc hello.c -o hello
!./hello

Ouput:
Hello! World!
哈囉!C 語言!