#include
#include
#define pi=3.141593
void main()
{
float r,h,a;
clrscr();
printf("Enter the radius:\t");
scanf("%f",&r);
printf("\nEnter the hight:\t");
scanf("%f",&h);
a=pi*r*r*h;
printf("\n The area of cylinder is: %f",a);
getch();
}
#include<math.h> // for atan() function
long double volume_of_cylinder (long double, long double);
long double area_of_circle (long double);
long double volume_of_cylinder (long double radius, long double height) {
return area_of_circle (radius) * height;
}
long double area_of_circle (long double radius) {
const long double pi = atan(1) * 4;
return pi * radius * radius;
}
write a vb program to find the magic square
Write a program to find the grade obtained by the students of a class
what is if(!(str[i]==32))
#include<stdio.h>
Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.
Write a c program to compute the surface area and volume of a cube
Yes. Fill the cylinder with a specific amount of water and write that amount down. (Any amount, as long as the keys will fit in without the water overflowing, and there is enough to make a difference.) Then put the keys in. Write down the new volume displayed by the graduated cylinder. Subtract the first volume form the initial volume, (this is change in volume), and you will get the volume of the keys.
Volume of cylinder: base squared times length
v=l*b
Volume of a cylinder = pi*radius2*height in cubic units
Volume of a cylinder in cubic units = piradius2height
The diameter, alone, is not enough to find the volume of a cylinder. You need the height as well. > Where pi = 3.1416, and d = cylinder diameter cylinder volume = pi * (d/2)2 * length of cylinder
you listen to it
Density = Mass/Volume, correct. However, with a cylinder, you have to find the volume. In order to find the volume of a cylinder use the equation PiR2 * H where "R" is the radius (Diameter/2) squared.
Volume of a cylinder = pi*(radius)2*(height) where pi = 22/7
First find the area of the cylinder's base, and multiply that by the height. For V = A x h. Volume, Area, height.
Graduated cylinder