Computer Science, asked by manshisingh1, 1 year ago

Write a python program to calculate the volume of cone .​

Answers

Answered by shubham0204
6

Answer:

See below code.

Explanation:

import math

r = 10

h = 12

vol = ( 1 / 3 ) * math.pi * ( r**2 ) * h

print( "Volume of cone with height {} and radius {} is {} units".format( h , r , vol ))

Answered by sushiladevi4418
0

Answer:

Write a python program to calculate the volume of cone.​

Explanation:

#include <stdio.h>  

int main()  

{  

   int height = 38;  

   int radius = 35;  

   double pie = 3.14285714286;  

   double volume = pie*(radius*radius)*height/3;  

   printf("Volume of the cone=%f",volume);  

}  

Output:-

Volume of the cone=48766.666667

Similar questions