Write two C functions that compute f(x)=2.3*x and g(x,y)=x*y | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write two C functions that compute f(x)=2.3*x and g(x,y)=x*y

Friends whoever understands this questions..just give some idea to do this

10th Oct 2018, 9:18 AM
Dhiviya Thirumavalavan
Dhiviya Thirumavalavan - avatar
3 Answers
+ 1
float f(float x) { return 2.3 * x; } float g(float x, float y) { return x * y; }
10th Oct 2018, 10:09 AM
Xavier Heugue
Xavier Heugue - avatar
0
you just need to code two functions: One must return 2.3*x the other must return x*y
10th Oct 2018, 9:58 AM
Xavier Heugue
Xavier Heugue - avatar
0
Xavier Heugue Thank you my friend😊
10th Oct 2018, 12:17 PM
Dhiviya Thirumavalavan
Dhiviya Thirumavalavan - avatar