Press "Enter" to skip to content

Loops With C Programming Language 1

Today , I will make 2 program, using the loops. You can run the these programs using Dev C++ or Microsoft Visual Studio . If you dont have these programs you should look previous essay.

In the first program, Program will get two number from the user and program will compare the numbers which one is bigger. I will make this program using if – else loop . If – else loop will control the condition.

Screen Output ;

In above , we learnt the if – else loop briefly . In the second program, we will use  while loop. This program will ask number from the user and this number should be smaller than 10 . If the number smaller than 10 , program will add 1 to number until equals to 10. When number equals to 10 ,program will be finish.

In above we use number++ term , this is a arithmetic term and that add 1 to number . I will share essay about the arithmetics term , after this essay . Keep following.

Screen Output ;

 

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *