from graphics import circle, rectangle from graphics.threedimension.cuboid import * from graphics.threedimension import sphere as s r = int(input("Enter the radius:")) print("Area of the given circle=", circle.area(r)) print("Perimeter of the given circle=", circle.perimeter(r)) print("____________________________________________________") l = int(input("\nEnter length of the rectangle:")) b = int(input("Enter the breadth of the rectangle:")) print("Area of the given rectangle=", rectangle.area(l, b)) print("Perimeter of the given rectangle=", rectangle.perimeter(l, b)) print("____________________________________________________") l = int(input("\nEnter length of the cuboid:")) b = int(input("Enter breadth of the cuboid:")) h = int(input("Enter height of the cuboid:")) print("Area of the given cuboid=", area(l, b, h)) print("Perimeter of the given cuboid=", perimeter(l, b, h)) print("____________________________________________________") r = int(input("\nEnter the radius of the sphere:")) print("Area of the given sphere=", s.area(r)) print("Perimeter of the given circle=", s.perimeter(r)) print("____________________________________________________")
import graphics.rectangle print("Rectangle") l = int(input("Enter the length:")) b = int(input("Enter the breadth:")) print("Area of rectangle: ", graphics.rectangle.area(l, b)) print("Perimeter of rectangle: ", graphics.rectangle.perimeter(l, b)) from graphics.circle import area from graphics.circle import perimeter as p print("***************************") print("Circle") r = int(input("Enter the radius:")) print("Area of circle: ", area(r)) print("Perimeter of circle: ", p(r)) from graphics.dgraphics.cuboid import area as a from graphics.dgraphics.cuboid import perimeter as p print("*****************************") print("Cuboid") l = int(input("Enter the length:")) b = int(input("Enter the breadth:")) h = int(input("Enter the height:")) print("Total surface area: ", a(l, b, h)) print("Perimeter : ", p(l, b, h)) from graphics.dgraphics.sphere import * print("****************************") print("Sphere") r = int(input("Enter the radius:")) print("Surface area: ", area(r)) print("Circumference : ", circumference(r))
import graphics.circle as ci import graphics.rectangle as re import graphics.subgraphics.cuboid as cu import graphics.subgraphics.sphere as sp print(ci.area(2)) print(ci.pere(2)) print(re.area(2, 3)) print(re.pere(2, 3)) print(sp.area(2)) print(sp.pere(2)) print(cu.area(1, 1, 2)) print(cu.pere(1, 1, 2))
import graphics.circle as ci import graphics.rectangle as re import graphics.dgraphics.cuboid as cu import graphics.dgraphics.sphere as sp print("area of circle", ci.area(3)) print("perimeter of circle", ci.perimeter(3)) print("area of rectangle", re.area(2, 8)) print("perimeter of rectangle", re.perimeter(2, 8)) print("area of cuboid", cu.area(2, 8, 5)) print("perimeter of cuboid", cu.perimeter(2, 8, 5)) print("area of sphere", sp.area(2)) print("perimeter of sphere", sp.perimeter(2))
import graphics.circle as ci import graphics.rect as re import graphics.subgraphics.cuboid as cu import graphics.subgraphics.sphere as sp print("area of a circle:", ci.area(2)) print("peremeter of a circle:", ci.pere(2)) print("area of a rectangle:", re.area(2, 3)) print("peremeter of a rectangle:", re.pere(2, 3)) print("area of a cuboid:", cu.area(1, 1, 1)) print("peremeter of a cuboid:", cu.pere(1, 1, 1)) print("area of a sphere", sp.area(2)) print("peremeter of a sphere", sp.pere(2))
import graphics.rectangle print("Rectangle") l = int(input("Enter length:")) b = int(input("Enter breadth:")) print("Area=", graphics.rectangle.area(l, b)) print("Perimeter=", graphics.rectangle.perimeter(l, b)) print() from graphics.circle import area from graphics.circle import perimeter as p print("Circle") r = int(input("Enter radius:")) print("Area=", area(r)) print("perimeter=", p(r)) print() from graphics.degraphics.cuboid import area as a from graphics.degraphics.cuboid import perimeter as p print("Cuboid") l = int(input("Enter length")) b = int(input("Enter breadth")) h = int(input("Enter height")) print("Area=", a(l, b, h)) print("Perimeter", p(l, b, h)) print() from graphics.degraphics.sphere import * print("Sphere") r = int(input("Enter radius")) print("Area=", area(r)) print("Circumference=", circumference(r))
from graphics import circle as c from graphics import rectangle as r from graphics.dgraphics import cuboid as cu from graphics.dgraphics import sphere as s print(c.area(2)) print(c.peri(2)) print(r.area(2, 2)) print(r.peri(2, 2)) print(cu.area(2, 2, 2)) print(cu.peri(2, 2, 2)) print(s.area(2)) print(s.peri(2))
import graphics from graphics import circle, rect from graphics.threeD import sphere, cuboid l, b = [ int(i) for i in input("Enter length and breadth of a rectangle").split() ] r = int(input("Enter radius of circle")) print("Area of rectangle is ", rect.area(l, b)) print("Perimeter of rectangle is", rect.perimeter(l, b)) print("Area of circlr is", circle.area(r)) print("perimeter of circle is", int(circle.perimeter(r))) l, b, h = [ int(i) for i in input("Enter length breadth and height of a cuboid").split() ] r = int(input("Enter radius of sphere")) print("area of cuboid is", cuboid.area(l, b, h)) print("Volume of cuboid is", cuboid.volume(l, b, h)) print("Area of sphere is", sphere.area(r)) print("Volume of sphere is", sphere.volume(r))
from graphics.circle import area, perimeter from graphics.rectangle import area1, perimeter1 from graphics.graph.cuboid import area2, perimeter2 from graphics.graph.sphere import perimeter3, area3 print("area of circle ", area(2)) print("perimeter of circle ", perimeter(3)) print("area of rectangle ", area1(2, 2)) print("perimeter of rectangle ", perimeter1(2, 2)) print("area of cuboid ", area2(2, 2, 2)) print(" perimeter of cuboid ", perimeter2(2, 2, 2)) print("area of sphere ", area3(2)) print(" perimeter of sphere ", perimeter3(2))
import graphics.rectangle as r import graphics.circle as c import graphics.TDgraphics.cuboid as cu import graphics.TDgraphics.spheare as s print("area of rectanle:",r.area(2,4)) print("perimeter of rectangle:",r.peri(2,4)) print("area of circle:",c.area(3)) print("perimeter of circle:",c.peri(3)) print("area of cuboid:",cu.area(2,3,4)) print("perimeter of cuboid:",cu.peri(2,3,4)) print("area of sphere:",s.area(3)) print("perimeter of sphere:",s.peri(3))
import graphics.rectangle as rect import graphics.circle as cir import graphics.subgraphic.sphere as spr import graphics.subgraphic.cuboid as cu print("Area of circle:", cir.area(2)) print("Perimeter of circle:", cir.pere(2)) print("Area of rectangle:", rect.area(2, 3)) print("Perimeter of rectangle:", rect.pere(2, 3)) print("Area of sphere:", spr.area(2)) print("Perimeter of sphere:", spr.pere(2)) print("Area of cuboid:", cu.area(1, 1, 2)) print("Perimeter of cuboid:", cu.pere(1, 1, 2))