Programs for Project File
Programs for Project File
Example Output:
Ans
Example Output:
if num % 2 == 0:
else:
Example Output:
Enter a number: 15
15 is an odd number.
Example Output:
Example Output:
Enter a number: 5
5×1=5
5 × 2 = 10
...
5 × 10 = 50
factorial = 1
factorial *= i
Example Output:
Enter a number: 5
if num > 0:
print(f"{num} is positive.")
print(f"{num} is negative.")
else:
Example Output:
Enter a number: -7
-7.0 is negative.
reversed_text = text[::-1]
Example Output:
Example Output:
else:
Example Output: