Understand the FOR loop

This post was originally posted in my first blog — learntheprogramming.blogspot.com A “for” loop allows code to be repeatedly executed and is classified as an iteration statement.Unlike many other kinds of loops, such as the while loop, the for loop is often distinguished by an explicit loop counter or loop variable. This allows the body … Read more

First C Program

The above Program will produce the following Output :My First Program running Perfectly Line 1 and 2 :  “#include” is a preprocessor directive“stdio.h”(Standard Input Output) and “conio.h”(Console Input Oputput) are the Header files which contain the definitions of function clrscr(), printf() and getch()“.h” extension represents that this is a header file. Line 3 : void main() “void” … Read more

First JAVA Program

The above program will give the following as output :My First Program Running Perfectly Note : JAVA is case Sensitive Language(means System and system both are different), so type carefully.The following explanation will help you : Line 1 : import java.lang.*;This line is optional . If you will not write this line in your code then the compiler will … Read more