はてな?プログラム

日常?プログラム?描くのかな

文字表示

Hello world! を表示するプログラム

#include <stdio.h>
int main() {
printf( "Hello world!\n" );
return 0;
}

 

printfを使うのに#include <stdio.h>が必要?

printf("");""の間にある文字を表示するらしい?

\nは、改行らしいです。