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))
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("____________________________________________________")
from graphics import circle,rectangle from graphics.threeD_Graphics.cuboid import * from graphics.threeD_Graphics import sphere as s print("--------Circle--------") r=int(input("Enter the Radious : ")) print("Area of given circle =",circle.area(r)) print("Perimeter of given circle =",circle.perimeter(r)) print("--------Rectangle--------") l=int(input("Enter the length : ")) b=int(input("Enter the bredth : ")) print("Area of rectangle =",rectangle.area(l,b)) print("Perimeter of rectangle =",rectangle.perimeter(l,b)) print("--------Cuboid--------") l=int(input("Enter the length of cuboid : ")) b=int(input("Enter the bredth of cuboid : ")) h=int(input("Enter the height of cuboid : ")) print("Area of cuboid =",area(l,b,h)) print("Perimeter of cuboid =",perimeter(l,b,h)) print("--------Sphere--------") r=int(input("Enter the radious of the sphere : ")) print("Area of the sphere =",s.area(r)) print("Perimeter of the sphere =",s.perimeter(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))
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.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(3, 2)) print("perimeter of rectangle", re.perimeter(3, 2)) print("area of cuboid", cu.area(3, 2, 4)) print("perimeter of cuboid", cu.perimeter(3, 2, 4)) print("area of sphere", sp.area(3)) print("perimeter of sphere", sp.perimeter(3))
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))
from graphics import circle, rectangle from graphics.ThreeDgraphics import sphere, cuboid r = int(input("Enter the radius of circle: ")) circle.circlearea(r) circle.circleperimeter(r) l = int(input("Enter the length of rectangle: ")) b = int(input("Enter the breadth of rectangle: ")) rectangle.area(l, b) rectangle.perimeter(l, b) c = int(input("Enter the radius of sphere: ")) sphere.area(c) sphere.circumference(c) l = int(input("Enter the length of cuboid: ")) w = int(input("Enter the width of cuboid: ")) h = int(input("Enter the height of cuboid: ")) cuboid.area((l * w), (w * h), (h * l)) cuboid.perimeter(l, w, h)
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))