#include <stdio.h>
int main() {
int l,b,h;
printf("print the value of l : \n");
scanf("%d",&l);
printf("print the value of b : \n");
scanf("%d",&b);
printf("print the value of h : \n");
scanf("%d",&h);
int lb,bh,hl;
lb = l*b;
bh = b*h;
hl = h*l;
int lb2 = lb*2;
int bh2 = bh*2;
int hl2 = hl*2;
int surfaceArea = lb2+bh2+hl2;
printf("total surface area of cuboid : %d" , surfaceArea );
int numberOfMango = 35;
int numberOfBucket = 2;
int totalMangoes = numberOfMango*numberOfBucket;
printf("total mangoes : %d", totalMangoes);
float pie = 3.14;
float radius = 7;
float c = 2*pie*radius;
printf("the circumference is : %f", c);
double reading = 5.9;
double normality = 6*reading;
printf("the normality is : %lf\n", normality);
char A = 'a';
char B = 'b';
char star = '*';
printf("%c %c %c", A, B, star);
Practice Questions Set 2
// Que : 1 Find the circumference of a circle by taking the value of r with scanf function
// Que : 2 Find the area of parallelogram by taking the value of b and h using scanf
// Que : 3 fing the surface area of cuboid by taking the value l,b,h by using scanf function
// Que : 4 find the volume of a cylinder by taking radius and height using scanf function
// Que : 5 find the volume of a cuboid by taking l,b,h with scanf function
float r;
float pie = 3.14;
printf("Enter the value of r : ");
scanf("%f",&r);
float c = 2*pie*r;
printf("the value of c is : %f", c);
int b,h;
printf("Enter the value of b : ");
scanf("%d",&b);
printf("Enter the value of h : ");
scanf("%d",&h);
int arParallelogram = b*h;
printf(" Area is : %d", arParallelogram);
}