Sum of even numbers: Take input from the User (num). Take one variable sum and initially, it is zero. i = 0 while i