#include<stdio.h> void main() { float length, breadth, area, perimeter; printf("Enter the length & breadth of a Rectangle\n(length breadth): "); scanf("%f %f",&length,&breadth); area=length*breadth; perimeter=2*(length+breadth); printf(" Area of the Rectangle=%0.3f\n",area); printf("Perimeter of the Rectangle=%0.3f\n",perimeter); printf("(Press ENTER to exit.)"); getch(); printf("\n"); }
class area{ int l,w,a; a=i*w; printf"area of rectangle is= %d",a; endl; }
start real length L and width w calculate the area A= Lw calculate the circumference C=2(L+w) Display A and C End
The diagonal works out as length of 33.3 cm or 333 mm To solve this you need to apply the equations for the area of a rectangle (a x b) and the perimeter of a rectangle (2a + 2b) as well as the Pythagorean Theorem (a^2 + b^2 = c^2).
Learn c programming and geometry. It will be easy when you know both.
Write a C program to Draw a RAINBOW and fill the suitable colors ...
abhimanyu
There will be a function in it like this: double RectangleArea (double a, double b) { return a*b; }
substracion of any two number program in c
you can use strstr()
Find the dimensions of the rectangle of largest area that can be inscribed in a circle of radius a in C programming
include<stdio.h> #include<conio.h> void main() { int length, breadth, area ; printf("\n Enter the length & breadth of a Rectangle"); scanf("d",&length,&breadth); area=length*breadth; printf("\n Area of the Rectangle=%d",area); getch(); }
I don't use that function in C programme.
#include<stdio.h> void main() { float length, breadth, area, perimeter; printf("Enter the length & breadth of a Rectangle\n(length breadth): "); scanf("%f %f",&length,&breadth); area=length*breadth; perimeter=2*(length+breadth); printf(" Area of the Rectangle=%0.3f\n",area); printf("Perimeter of the Rectangle=%0.3f\n",perimeter); printf("(Press ENTER to exit.)"); getch(); printf("\n"); }
#include(stdio.h) int main ()
Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you.
#include <stdio.h> int main (void) { puts ("abcdefedcba"); return 0; }