Practical Record File
Practical Record File
Aim:
To write a program to find the maximum number out of three given numbers.
Source Code:
Sample Output:
Aim:
Source Code:
Sample Output:
Armstrong number
Aim:
Computer Practical Record File
Source Code:
n=1
for j in range(i):
n += 1
print()
Sample Output:
23
456
7 8 9 10
11 12 13 14 15
Aim:
Source Code:
f=1
f *= i
print("Factorial is:", f)
Sample Output:
Enter a number: 5
Aim:
To write a program to find the sum of even numbers and the product of odd numbers in the range 1 to 10.
Source Code:
s=0
p=1
if i % 2 == 0:
s += i
else:
p *= i
print("Sum of even:", s)
print("Product of odd:", p)
Sample Output:
Sum of even: 30