Write a function for evaluating the area of rectangle having sides a and b. Both sides and area should be taken in float values | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Write a function for evaluating the area of rectangle having sides a and b. Both sides and area should be taken in float values

plzz give me proper written answer so that i can just copy it

26th Jan 2018, 12:19 PM
Prakhar Jain
10 Answers
+ 4
Yeah a really easy piece of homework...
26th Jan 2018, 12:34 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Smells like homework...
26th Jan 2018, 12:33 PM
LunarCoffee
LunarCoffee - avatar
+ 1
float area(float a, float b){ return a*b; } btw if this is homework and you can't do this you really need to study
26th Jan 2018, 12:33 PM
patrick wilbur
patrick wilbur - avatar
+ 1
a) No. b) That's cheating. c) Show us you've tried. d) The point is to learn. e) These shouldn't even be in point form but whatever. f) We aren't here to do your homework. g) At least you were honest.
26th Jan 2018, 12:41 PM
LunarCoffee
LunarCoffee - avatar
0
are you have a simple function? something like: inline float area(const float a, const float b) { return a*b; }
26th Jan 2018, 12:29 PM
Василий Савельев
Василий Савельев - avatar
- 1
yes i have more questions as well
26th Jan 2018, 12:34 PM
Prakhar Jain
- 1
Made it a bit better for your teacher: float area(const float a, const float b) { return a * b; } It's a proper program that you can copy. I do C++ since 1.5 years, it's 100% correct.
26th Jan 2018, 5:52 PM
Timon Paßlick
- 1
thank you timon
26th Jan 2018, 6:05 PM
Prakhar Jain
- 2
guys plzz give me the proper written programe so that i can just copy it
26th Jan 2018, 12:35 PM
Prakhar Jain
- 2
No problem ( :
26th Jan 2018, 6:06 PM
Timon Paßlick