Welcome to W3Courses

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;
       }
}

Average: 1 (1 vote)