Joydip Panchal C Programs
Area of Cube :
#include<stdio.h>
#include<conio.h>
void main()
{
int l,b,h,a;
clrscr();
printf("\n\n\nEnter the lenth of your QUEB:"
scanf("%d",&l);
printf("\n\n\nEnter the width of your QUEB:"
scanf("%d",&b);
printf("\n\n\nEnter the height of your QUEB:"
scanf("%d",&h);
a=2*(l*b+l*h+b*h);
printf("\n\n\nArea of your squre=%d",a);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int l,b,h,a;
clrscr();
printf("\n\n\nEnter the lenth of your QUEB:"
scanf("%d",&l);
printf("\n\n\nEnter the width of your QUEB:"
scanf("%d",&b);
printf("\n\n\nEnter the height of your QUEB:"
scanf("%d",&h);
a=2*(l*b+l*h+b*h);
printf("\n\n\nArea of your squre=%d",a);
getch();
}
Harendra Thind