c language exercises count the age 28--

#include <stdio.h> 
#include <stdlib.h>
 / * Title: five people sit together, the fifth person to ask how old? He said that 2 years older than 4 people. Asked individuals age 4, he said, is larger than 3 individuals 2 years of age. Asked 
a third person, said Congress two years than the second. He asked a second person, the first person to say more than two years older. Finally, ask the first man, he said, he is 10 years old. The fifth person to ask how much? * / 
Int main () {
 int I, Age = 10 ;
 for (I = 0 ; I < . 4 ; I ++ ) 
Age = Age + 2 ; 
the printf ( " fifth man age was:% d years " , Age);
 return  0 ; 
}
   

 

Guess you like

Origin www.cnblogs.com/gougouwang/p/11415397.html