مدة التسجيل: 00:10:02

int main()
{
int MAX=4; 
int total =0; 
int average=0; 
int numb;
cout<<"Please enter your input from 5 to 9";
cin>>numb; 
if((numb <5)&&(numb>9)) 
cout<<"please re type your input"; 
else 
for(i=0;i<=MAX; i++)
{
total = total + numb; 
average= total /MAX;
} 
cout<<"The average number is"<<average<<endl; 
return 0; 
}
العودة إلى غدير البرمجة المتقدمة
المستخدمون المتصفحون لهذا المنتدى: لا يوجد أعضاء مسجلين متصلين و 4 زائر/زوار