Write a program to input length and breadth of a rectangle and print its area.
only answer if u know the question..
Answers
Answered by
9
Answer:
C Program
- #include <stdio.h>
- int main()
- {
- int width=5;
- int height=10;
- int area=width*height;
- printf("Area of the rectangle=%d",area);
- }
Answered by
10
Explanation:
<?php
$width=5;
$height=10;
$area=$width*$height;
echo "Area of the rectangle=";
echo $area;
?>
Output:
Area of the rectangle=50
Java Program
public class rectangle{
public static void main(String args[])
{
int width=5;
int height=10;
int area=width*height;
System.out.println("Area of rectangle="+area);
}
}
Similar questions