lamrinnirmal
Journeyman
tuxfan said:How can you guys directly give code to a learner? Then how will he learn? Don't spoon feed him. Give him hints, not the code. It will be more satisfying even for him if he solves his problems on his own
bullzeye tuxfan!..... couldnt disagree with you on that!...
@prasadmultiplex- hope you understood the mod operator as tuxfan explained it.... it is really important to get the mod concept right as it simplifies hell lot of problems in C...
in a nutshell: a%b (read % as mod) will return the remainder when a is divided by b. hence if a%b is 0 then b completely divides a...
hope you got the concept wrt to finding even nos.