This is the new version of Cows Optimized Values. http://www.yourfilelink.com/get.php?fid=250457 This one is also converted from c++ to c. #include <stdio.h> void normalBandwidth(); void highBandwidth(); int downloadSpeed; int uploadSpeed; int main() { printf("/*****************************\n"); printf("* Cows optimized values 2 *\n"); printf("* By Jonathan Vasquez *\n"); printf("* Converted from C++ to C *\n"); printf("******************************\n\n"); printf("Enter your download speed: "); scanf("%d",&downloadSpeed); printf("Enter your upload speed: "); scanf("%d",&uploadSpeed); printf("\n"); printf("Your (Download/Upload) speed is %d / %d\n",downloadSpeed,uploadSpeed); printf("Global maximum number of connections: %d\n\n",uploadSpeed); normalBandwidth(); highBandwidth(); return 0; } void normalBandwidth() { int globalUploadRate = ( float ) uploadSpeed / 10 * .80; int numberUploadSlots = globalUploadRate / 4; printf("Normal Bandwidth Users\n"); printf("----------------------\n\n"); printf("Normal bandwidth global maximum upload rate: %d\n",globalUploadRate); printf("Normal bandwidth number of upload slots per torrent: %d\n\n",numberUploadSlots); } void highBandwidth() { int oGlobalUploadRate = ( float ) uploadSpeed / 8 * .85; int oNumberUploadSlots = oGlobalUploadRate / 4; printf("High Bandwidth Users\n"); printf("----------------------\n\n"); printf("High bandwidth global maximum upload rate: %d\n",oGlobalUploadRate); printf("High bandwidth number of upload slots per torrent: %d\n\n",oNumberUploadSlots); }