A primitive of the function defned by f(x) = x −1 + (1/(x+1)) is
A. F(x) = (x^2 /2) −x + ln(x + 1) B. F(x) = (x^2 /2) + ln(x−1)
C. F(x) = (x^2 /2)−x + ln(1−x) D. F(x) = −x + ln(x−1)
In C++
What is the sections doing ? and
What is the output from the sections
below ?
a. int p=o;
for (int i=1; i<=30; i++){
if (i%5==0)
p+=i;
}
cout<<p<<endl;
b. int count=2;
int g=0;
while (count<=50){
g=count;
cout<<g<<endl;
count +=2;
}
cout<<count<<endl;