جامعيه حزينة
20-08-2007, 12:16 AM
السلام عليكم ..
شلونكم ان شاء الله بخير ؟؟..
انا عندي مشكله بهالبرنامج مايطلعلي ولا ايرور ..ولكن مايسوي حسابات حق الدوال ...
ممكن مساااعده ..جزاكم الله الف خير ,,,
#include <iostream>
int growthrate (int b,int d);
int estimatedpopulotion (int p, int g, int n);
using namespace std;
int main ()
**
int p,b,d,n;
cout<<"enter the current populotiom:"<<endl;
cin>>p;
do
**
cout<<"enter the number of years"
<<"the number of years should be >=2"<<endl;
cin>>n;
}while (n>=2);
do
**
cout<<"enter the birth and death rate:"<<endl;
cin>>b>>d;
}while ( b>=0 && d>=0);
cout<<" the growthrate="<<growthrate<<endl;
cout<<" the populotion ="<<estimatedpopulotion<<endl;
return 0;
}
int growthrate (int b,int d)
**
return b-d;
}
int estimatedpopulotion (int p , int g, int n )
**
for (int i=0;i<n;i++)
return (p+((g*p)/100));
}
شلونكم ان شاء الله بخير ؟؟..
انا عندي مشكله بهالبرنامج مايطلعلي ولا ايرور ..ولكن مايسوي حسابات حق الدوال ...
ممكن مساااعده ..جزاكم الله الف خير ,,,
#include <iostream>
int growthrate (int b,int d);
int estimatedpopulotion (int p, int g, int n);
using namespace std;
int main ()
**
int p,b,d,n;
cout<<"enter the current populotiom:"<<endl;
cin>>p;
do
**
cout<<"enter the number of years"
<<"the number of years should be >=2"<<endl;
cin>>n;
}while (n>=2);
do
**
cout<<"enter the birth and death rate:"<<endl;
cin>>b>>d;
}while ( b>=0 && d>=0);
cout<<" the growthrate="<<growthrate<<endl;
cout<<" the populotion ="<<estimatedpopulotion<<endl;
return 0;
}
int growthrate (int b,int d)
**
return b-d;
}
int estimatedpopulotion (int p , int g, int n )
**
for (int i=0;i<n;i++)
return (p+((g*p)/100));
}