answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

#include<math.h>

void main()

{

float len,bre,area;

clrscr();

printf("\n\n\t\tEnter the length of the rectangle=\t");

scanf("%d",&len);

printf("\n\n\t\tEnter the breadth of the rectangle=\t");

scanf("%d",&bre);

printf("\n\n\t\tArea of the rectangle=\t%3f",area=l*b);

getch();

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

#include<stdio.h>

#include<stdlib.h>

void main( )

{

floot L,B,Area;

printf('enter the L,B');

scanf('f,"&L,&B);

Area=*L×B;

printf('The area of rectangle=%f',Area);

}

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

#include <cstdio>

int main()

{

int x, y;

printf("Enter length: ");

scanf("%d", &x);

printf("Enter width: ");

scanf("%d", &y);

printf("%d", (x * y));

char wait;

scanf("%s", wait);

return 0;

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in c to find the area of rectangle using array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


Write c program to find median?

If you are using an array : sort using qsort() then take middle element.


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


You want to write a simple without using pointer or array c program which will print greatest number when you give 20 number?

i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?


Would you Write c plus plus program using array for Fibonacci number?

You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....


Write a c program to reverse an array without using another array?

public static int[] reverseArray(int[] array) { int i = 0, j = array.length - 1; for (i = 0; i &lt; array.length / 2; i++, j--) { int temp = array[i]; array[i] = array[j]; array[j] = temp; } return array; }


Program to count the number of numbers in an array using 8085 microprocessor?

A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.


How do you write a c program to find area of rectangle using function?

There will be a function in it like this: double RectangleArea (double a, double b) { return a*b; }


Sample program array using buffered reader?

system.exit o


Write a java program to maintain bank details using packages?

Use the Array Package. if you need help - add me on msn james_mc_123@hot dkjdkdjd mail.comp


Write an Algorithm to delete a last element from the array?

// Assuming you dynamically allocated this array using "new"... delete array[arraysize - 1]; arraysize--;


Can you give an example of array using character variable in c program?

the example of array over charcter variables is char ["string"]