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 v  a2 s  .co  m
{ 
     printf("Hello world!\n"); 
     return(0); 
}

Result

Related Quiz