megtamang05
megtamang05 megtamang05
  • 11-07-2022
  • Computers and Technology
contestada

write a c program to find area of rectangle using user defined function.​

Respuesta :

Talanat
Talanat Talanat
  • 19-07-2022

Answer:

// C Program to Find Area of Rectangle

#include <stdio.h>

int main() {

   float length, width, area;

   printf("Enter the length & width of the rectangle::\n");

   scanf("%f", &length);

   scanf("%f", &width);

   // It will calculate area of rectangle

   area = length * width;

   // It will print the final output

   printf("\nArea of the rectangle is: %f units\n", area);

   return 0;

}

Explanation:

Answer Link

Otras preguntas

In U.S. political theory, the government obtains its legitimate power from the Republicans. the Democrats. the consent of the governed. the electoral college.
Agricultural lobbyists have been urging the __________ of farm subsidies. a. continuation b. removal c. restructuring d. suspension
Unemployment jumped from less than 3 million in 1929 to what amount by 1932? a. 5 million c. 10 million b. 7.5 million d. 12.5 million
Which sentence uses a verb that agrees with its pronoun subject? A. Many on the team wants to get new uniforms. B. Almost nothing on the television are w
what is 4/5 %of 500
Where did the titanic begin its journey?
The examples on how entrepreneurs contributes on the economy aspects and social aspects
Explain four challenges faced by small businesses
what did hitler suggest was needed for germany and how would that lead to war
Richard Nixon ran against Lyndon Johnson in the 1968 Presidential Election. a. true b. false