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;
}
}
Related Articles
- Source Code for Math Functions Sin Cos Tan ArcTan Absolute Value in C Programming
- Source Code for Math Functions Log10 Floor Round Power Square Root in C Programming
- Source Code for Calculating Factorial of a Number using a For Loop in C Programming
- Source Code for Calculating Factorial of a Number using a DO WHILE Loop in C Programming
- Source Code for Calculating Factorial of a Number using a Recursive Function in C Programming
- Source Code for Calculating Factorial of a Number using a WHILE Loop in C Programming
- Source Code to Change any Number in Base 10 to Base 2 or Binary in C Programming
- Source Code for the Tribonacci Function in C Programming
