11. Write a C function int rectArea (int len, int wid) that returns the area of a...

Question:

11. Write a C function int rectArea (int len, int wid)

that returns the area of a rectangle with length len and width wid. Test it with a main program that inputs the length and width of a rectangle and outputs its area. Output the value in the main program, not in the function.

Sample Input 6 10 Sample Output The area of a 6 by 10 rectangle is 60.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Systems

ISBN: 9781284079630

5th Edition

Authors: J Stanley Warford

Question Posted: