Welcome to W3Courses
 Like Us on Facebook

Printing Hello World and Numbers From 1 to 11 in C Programming

The following code prints hello world and numbers from 1 to 11

main()
{
        int x;
        printf("Hello World\n");
        x=1;
        while (x<=11)
       {
                printf("%d ",x);
                x=x+1;
       }
}

Share