Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

find the area of rectangle

0 votes
asked Feb 29, 2020 by anonymous 1 flag

5 Answers

0 votes
answered Mar 2, 2020 by sushma (140 points)
include<stdio.h>

int main()

{

   int a,l,b;

  a = 2*l*b;

  printf("area of rectangle",a);

}
+1 vote
answered Mar 2, 2020 by Nicky S
a = int(input ("Enter Length:"))

b = int(input("Enter Width:"))

print(a*b)
0 votes
answered Mar 3, 2020 by rasso (140 points)

import java.util.Scanner;

public class Main

{

public static void main(String[] args) 

{

    int width,height;

    Scanner input = new Scanner(System.in);

    System.out.print("Enter width (cm) => ");

    width=input.nextInt();

    System.out.print("Enter height (cm) => ");

    height=input.nextInt();

    System.out.print("Rectangle of area: " + width * height +" cm2");

}

}

0 votes
answered Mar 5, 2020 by hima sree (140 points)
length=5;

breadth=6;

area=length*breadth

print("Area of rectangle is" area)
0 votes
answered Mar 5, 2020 by anonymous
l=int(input())

b=int(input())

area=l*b

print("AREA OF RECTANGLE:",area)
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...