Blogger Information
Blog 3
fans 0
comment 0
visits 2160
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
19头牛
YouPia的博客
Original
854 people have browsed it

一个老人在临死前把三个儿子叫到跟前,告诉他们把19头牛分了,老大分1/2,老二分1/4,老三分1/5,说完就死了.按当地习俗,不能宰牛.问三个儿子各能分多少?

{int i;

   for(i=1;i<=10;i++)

     if(i+i/2+2*i/5==19)

   printf("三个儿子分别分%d头,%d头和%d头.\n",i,i/2,2*i/5);

   getch();


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post