4-5

#include<stdio.h>
#include<string.h>
int main(void)
{
float speed_load,size_of_file,time_load;
printf("please input speed load (Mb/s)and size of file(MB)\n");
scanf("%f %f",&speed_load,&size_of_file);
printf("At %.2f megabits per second,a file of %.2f megabytes\n",speed_load,size_of_file);
time_load = size_of_file *8/speed_load;
printf("downloads in %.2f seconds.\n",time_load);
return 0;
}

posted @ 2022-12-05 19:33  笨笨的小虫子  阅读(352)  评论(0)    收藏  举报