Practile No 1
Practile No 1
:- 02
Code :-
a=int(input('Enter the first integer:'))
b=int(input('Enter the second integer:'))
Sum=a+b
Output :-
PRACTILE NO. :- 03
Code :-
r= int(input('Enter the radius of circle:'))
Area= 3.14*r*r
print('The area of the circle is:', Area)
Output :-
PRACTILE NO. :- 05
Code :-
b= float(input('Enter the base of triangle:'))
h= float(input('Enter the height of triangle:'))
Area= (1/2)*b*h
Output :-
PRACTILE NO. :- 11
Code :-
a=int(input('Enter the number:'))
if a%2==0:
print('The number is even')
else:
print('The number is odd')
Output :-
PRACTILE NO. :- 08
Code :-
a=int(input('Enter the first integer:'))
b=int(input('Enter the second