#include<iosteam.h>
Main()
{
Int age1,age2,age3,age4;
Int totalage,averageage;
Cout<<"please enter the age of student1: ";
Cout<<"please enter the age of student2: ";
Cout<<"please enter the age of student3: ";
Cout<<"please enter the age of student4: ";
My question is …. How we calculate the total age … how should we write in c++
Totalage=age1+age2+age3+age4; Like this???
Averageage=tatalage/10; Like this???
}
--You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan 2009" group.
To post to this group, send email to virtual-university-of-pakistan-2009@googlegroups.com.
To unsubscribe from this group, send email to virtual-university-of-pakistan-2009+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/virtual-university-of-pakistan-2009?hl=en.
Comments
Post a Comment