One similarity between while and for loop is that they both are entry controlled loop i.e. they both will check the condition for true or false. If the condition is true then only the entry within the loop is permitted.
One difference between while and for loop is that while loop is best suited for those situations where the number of iterations are not known in advance where as for loop is best suited for those stations where the number of iterations are already known in advance.