C Programs


C programs solutions


6 User See All
gulab sorathiyahari pandeyNiraj Boradhardik pandyaNAGA SAI HEMANTH JAMILI
Joydip Panchal
Photo
Back to cluster list

Make Comments..!!


Joydip Panchal
Area of square :

#include<stdio.h>
#include<conio.h>
void main()
{

int l,area;
clrscr();
printf("Enter the lenth of your squre:";
scanf("%d",&l);
area=l*l;
printf("Area of your squre=%d",area);
getch();

}
Like · Comment ·
Joydip Panchal
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();

}
Like · Comment ·
Download Android App