dear mostafaxx, to take three user's age you should use an array, please take a look on arrays in C/C++ language. then

at for (i=1 ; i<=5 ; i++) //statement says that you are taking input 5 times.

and last thing you should mention here that a user should enter a value like 20 or 35 etc --->printf("user number &#37;i Enter your Age in values like 20 or 35 : ",i);

continue your struggle.



int age[3],i;
clrscr();
for(i=0;i<3;i++)
{ cout<<"please enter age of "<<i+1<<" person";
cin>>age[i];
}
for(i=0;i<3;i++)
cout<<age[i];