answersLogoWhite

0


Best Answer

int maxprod (int n)

{

return n/2;

}

int main (void)

{

int n, a, b;

n= 7; /* for example */

a= maxprod (n);

b= n-a;

printf ("%d+%d=%d, %d*%d=%d\n", a, b, a+b, a, b, a*b);

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Program in c language divede a given number in two parts such that product of these two numbers is maximum?
Write your answer...
Submit
Still have questions?
magnify glass
imp