### Program 2 : To print from 1 to 100 numbers.

Program 2 :

```#include<stdio.h>

main()

{

int i;

for(i=1;i<=100;i++)

{

printf("%d\n",i);

}

}```
Output:-
1
2
3
4
5
.
.
.
.
.
100
Explanation :
1.)initialises i as an integer. 2.)Now i=1 and is lesser than 100 so condition satisfies and prints the value of i which is 1.
3.)Now i is incremented to '2' and again it is less than 100 so condition satisfies and prints the value of i which is '2'.
4.)It goes like that until i is equal to 100 and it is equal to 100 so it prints 100 than the value of i is incremented to 101 which dissatisfies the condition causing to come out of the loop.
5. As there are no statements out of the loop the program terminates.

#### 1 comment:

1. college-party-guide One of the most important rituals for students in college is to throw the most memorable student dorm celebration.
factorial hundred In the last few days, the “factorial of 100” is one of the top subjects and a lot of maths geeks compute it using voice assistants such as Alexa, Shiri, etc.
factorial hundred In the last few days, the “factorial of 100” is one of the top subjects and a lot of maths geeks compute it using voice assistants such as Alexa, Shiri, etc.
gigolo The term”gigolo” usually refers to the person who lives an arranged lifestyle that includes many of these relationships in a series, rather than having any other support system.
y2mate.com y2mate.com is a well-known password management system. It lets you download all your favourite videos and audios.
IGTools.net The term”gigolo” usually refers to the person who lives an arranged lifestyle that includes many of these relationships in a series, rather than having any other support system.
sniffies Sniffies isn’t bookmarked on my phone, however I’ve been logged in enough that the web target will auto-complete on my personal browser.

 Donate Buy me a coffee \$2.00 USD Buy me a burger \$5.00 USD Buy me a pizza \$10.00 USD
 Compiler Used by me C-Free 5.0(Recommended) Other Compilers Code Blocks(Recommended) Online Compilers Ideone(Remember to give input before executing online where ever necessary)