Category Programming

How to use while loop in C Programming

  Sometimes in C program we need to repeat statements for certain number of times. So in order to repeat statements for number of times we use repetition structure in C programming. There are 3 types of repetition structures available…

How to use for loop in C Programming

  For loop is also a type of repetition structure. This repetition structure is simpler in syntax as compared with other 2 loops because all four loop conditions can be defined in single line. Following simple program explains how to…

How to define variables in c programming

In our previous post we discussed about how to get values from user. Sometimes we need to define variables and assign values to those variables. This simple program explains how to define variables and how to assign values to the variables…

How to use if statement in C Programming

  If statement is called as selection structure in C Programming. If statement checks a condition and proceed further depending upon the fact that whether the condition being checked is true or false. In simple words it says “Do something…

Hello World Program in C

Hello World! program is used to start learning any programming language. This simple hello world program is written in C programming language. This simple program just print ‘Hello World!’ string on the output screen. We tried to explain each code…