Making the program for finding the volume in C language//#shorts//#programming//#coder

preview_player
Показать описание
Title:- Making the program for finding volume in C language.

The link of the channel:-

Please like the video and subscribe the channel.

Similar video:-

|| Program is given in the comment box ||

ignore this:-

Tags:-#shorts
#shortsvideo
#shortvideo
#short
#programming
#coder
#coding
#codinglife
#programmer
#maths
#mathematics
#mathstricks
#volume
#education
#educational
#educationalvideo
#educationalvideos

how to find the volume , how to find the volume in just 2 second, how to find the volume of cuboid, how to find the volume of cuboid,how to find the volume of cube, how to find the volume of cylender, how to find the volume of cone, how to find the volume of sphere, how to find the volume of hemisphere, making maths easy.

|| THANKS FOR WATCHING ||
Рекомендации по теме
Комментарии
Автор

#include<stdio.h>
#include<math.h>
int main()
{
float l, b, h, x, a, q, r, n, y, m;
float pi=3.14;
printf(" **Welcome to volume finder**");
printf("\n(1) Cuboid\n(2) Cube\n(3) cylinder\n(4) cone\n(5) Sphere\n(6) Hemisphere ");
printf("\nEnter the number from the above list\n");
scanf("%f", &q);

if(q==1) {

printf("Enter length\n");
scanf("%f", &l);
printf("Enter breadth\n");
scanf("%f", &b);
printf("Enter height\n");
scanf("%f", &h);

x = l*b*h;

printf("The volume of cuboid is %.2f cubic meter\n", x);

}


else if(q==2){
printf("Enter the side\n");
scanf("%f", &a);

printf("The volume of the cube is %.2f cubic meter\n", a*a*a);

}

else if(q==3) {

printf("Enter radius\n");
scanf("%f", &r);
printf("Enter height\n");
scanf("%f", &h);

printf("The volume cylinder is %.2f cubic \nmeter", pi*r*r*h);

}

else if(q==4) {
printf("Enter radius\n");
scanf("%f", &r);
printf("Enter height\n");
scanf("%f", &h);

printf("The volume of cone is %.2f cubic meter", y*r*r*h);

}

else if(q==5) {
printf("Enter radius\n");
scanf("%f", &r);

printf("The volume of sphere is %.2f cubic meter", n*r*r*r);

}

else if(q==6) {
printf("Enter radius\n");
scanf("%f", &r);
m=0.6667*pi;
printf("The volume of hemisphere is %.2f", m*r*r*r);

}

else{
printf("ERROR!!");
}


return 0;
}

vedant_tathe
join shbcf.ru