


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Q.1] Write a program in python to find simple interest input principle rate of interest and no of period from user. Input: p=int(input(āenter principleā)); r=int(input(āenter rateā)); t=int(input(āenter time periodā)); s=prt/ print(s) OUTPUT: Enter principle 10000 Enter rate 5 Enter time period 3
Q.2]Write a program in python to find area of circle and perimeter of the circle. INPUT: R=int(input(āenter radiusā)); A=3.14r; P=23.14r Print(a) Print(p); OUTPUT: R=int(input(āenter radiusā)); A=3.14r; P=23.14r Print(a); Print(p);
Q.3]Write a program in python to find the area of triangle. Input base and height from the user. INPUT: H=int(input(āenter heightā)); B=int(input(āenter baseā)); A=0.5hb; Print(a); OUTPUT: Enter height 15 Enter base 5
Q.4} diagonal printing INPUT print("this\n\tis\n\t\tmy\n\t\t\tfirst\n\t\t\t\tpython\n\t\t\t\t\tprogram\n\t\t\t\t\t") OUTPUT this is my first
x=1; y=2.8; z=1j; a=float(x); b=int(y); c=complex(x); print(a,b,c); output 1.0 2 (1+0j)