<commit_before><commit_msg>Create cylinder.c<commit_after>#include <stdio.h>
#include <math.h>
//defining pi as 2 * acos(0.0)
#define PI  2.0*acos(0.0)
#define MIN(a,b) ((a)<(b)?(a):(b))


int main() {
	
	int wid,height;
	double r1,h1,r2,h2,v1,v2;
	while(1) {
		scanf("%d %d",&wid,&height);
		//checking wether they are 0 0 
		if(!wid && !height)
			break;

		r1 = wid/(2.0*PI);
		h1 = height - 2*r1;
		r2 = MIN(height/(2.0*(PI+1.0)),wid/2.0);
		h2 = wid;
		//volume = PI * r * r * h
		v1 = (PI * r1 * r1 * h1);
		v2 = (PI * r2 * r2 * h2);
		if(v1 > v2) printf("%.3lf\n",v1);
		else printf("%.3lf\n",v2);
	}

}

{'fraction_non_alphanumeric': 0.24549918166939444, 'fraction_numerical': 0.07201309328968904, 'mean_word_length': 3.052980132450331, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '554820', 'n_tokens_mistral': 338, 'n_tokens_neox': 308, 'n_words': 63}