Here everyone have explained the meaning of Big O notation. So , i m not going to explain that again . But i will explain u in brief.
Take any small program in which there is no loops.
{ int a=1;
print("%d",a);
}
This program will take negligible time to execute. Let, the declaration and printing take be unit time. So its time complexity will be O(1)
Another program with one loop and running for n times
{int a,i;
long n=10000000;
for(i=0;i<n;i++)
// doing some calculations
}
As u can see here the declaration will take negligible time i.e. O(1). And if we let that line 4 will take some unit of time i.e. O(n). Then, the overall time complexity will be
O(1)+O(n)=O(n).
Now u can understand for O(n*n) i.e. for 2 loops.
For better understanding....
Finding an item in an unsorted list = O(n)
Multiplying two n-digit numbers by a simple algorithm or bubble sort =O(n*n)
Finding an item in a sorted array with a binary search =O(log n)
salesman problem with brute force = O(n!)