Computer Science, asked by rahul9c26stc, 10 months ago

write a program to calculate the area of a rectangle by taking no. from the users​

Answers

Answered by khushithestar
10

Explanation:

Program

#include <stdio.h>

int main()

{

int width=5;

int height=10;

int area=width*height;

printf("Area of the rectangle=%d",area);

}

Output:

Area of the rectangle=50

PHP Program

<?php

$width=5;

$height=10;

$area=$width*$height;

echo "Area of the rectangle=";

echo $area;

?>

Output:

Area of the rectangle=50

Answered by samiarahossain1975
0

Answer:

printf("Area of the rectangle=%d",area);

Explanation:

here is your answe mate there are 8 but you hsve told to give one

Similar questions