Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions SumEvenNumbers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
num=int(input("Enter a positive integer: "))

total=0
for i in range(0,num+1,2):
total+=i


print(f"The sum of even numbers between 1 and {num} is: {total}")
6 changes: 6 additions & 0 deletions Task1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
for num in range(45,210):
if num ==100:
continue
elif num == 205:
break
print(num)
11 changes: 11 additions & 0 deletions Task2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ansure=input("what is the product of 7 * 24 ?\n")

while ansure != "168":
print(f"Your Answer {ansure} is wrong try again..")
ansure=input("what is the product of 7 * 24 ?\n")

print("You answered correctly this Question")