C - Write program to output 'Hello World' to console window

Requirements

Write program to output 'Hello World' to console window

Hint

Use printf() function;

Hard code the text as string.

Demo

#include <stdio.h> 

int main() //from   w w  w  .j a va  2 s  . c  o  m
{ 
     printf("Hello world!\n"); 
     return(0); 
}

Result

Related Quiz