Takes an integer input from the user. Checks whether the number is even or odd using an if-else statement. Displays the result accordingly. Task 2: Sum of Integers from 1 to 50 Using a Loop Uses a for ...
1) Using range(), make a range from 45 to 210, using a for loop iterate over the sequence and print the elements. Skip the number 100 and break the loop at 205 2) Using a while loop and input , do the ...