Hey all, I'm new here, but I figured I should join a forum since I'm taking a C programming class, and it's really my only programming experience outside of some low level Visual Basic. I'm stumped on an assignment I have right now. What we have to do in this assignment is calculate the volumes of cylinders using the height and radius, which is the easy part, but we have to assign v the highest calculated value of all the cylinders and have it display ONLY that value. I'll show you what the output is supposed to look like, and what I have in my code. Any help is much appreciated. Here is what the output should look like:

----jGRASP exec: H:\My Documents\comp1200\HUNDLEY\2009sp\assign_03\a.exe

Volume of Cylinders
Enter the number of cylinders: 3
Enter radius and height: 5 9
Enter radius and height: 8 4
Enter radius and height: 4 10

Information about the cylinder with the largest volume
Volume: 804.25
Radius: 8.00
Height: 4.00
----jGRASP: operation complete.



AND here is what I currently have in my code:

Code:
#include <stdio.h>
#include <math.h>

int main()
{
	double v, h, r, PI;
	int num, count, c;
	PI = 3.14159;
	
	printf("How many cylinders are there?");
	scanf("%d", &num);
	
	
	printf("Enter the radius and height of cylinder 1:  ");
	count = 0;
	c = 0;
	while (count < num)
	{
		scanf("\n%lf" "\n%lf", &r, &h);
		count = count + 1;
		if (count < num)
		{
			printf("Enter the radius and height of cylinder %d:  ", count +1);
		} 
	}
	v = PI * pow(r,2) * h;
	printf("The volume of the cylinder is %.2lf\n", v);
	return 0;
}
I would prefer if you didn't straight up write the code for me, but if you could make recommendations that'd be great, or tell me the correct function or statement to use.

Again, thanks so much for help.