#include <stdio.h>
int main(void)
{
float dspeed;
float filesize;
float timetaken;
float hours;
float minutes;
printf("\nHow Much is Your Internet Speed (In Mbits): ");
scanf("%f",&dspeed);
printf("How Much is File Size(In MBs):");
scanf("%f",&filesize);
timetaken = (1024*1024*filesize)/(1024*1024*(dspeed/8));
hours = timetaken/3600;
minutes = timetaken/60;
printf("\nAt %2.2f Mbps, a File of %2.2f Megabytes will take %2.2f seconds or ""%2.2fhrs or %2.2fminutes",dspeed,filesize,timetaken,hours,minutes);
getch();
return 0;
}