Answer:
<u>C program to find the sum of the series( 1/2 + 2/3 + ... + i/i+1)</u>
#include <stdio.h>
double m(int i);//function declaration
//driver function
int main() {
int i;
printf("Enter number of item in the series-\n");//Taking input from user
scanf("%d",&i);
double a= m(i);//Calling function
printf("sum=%lf",a);
return 0;
}
double m(int i)//Defining function
{
double j,k;
double sum=0;
for(j=1;j<i+1;j++)//Loop for the sum
{
k=j+1;
sum=sum+(j/k);
}
return sum;
}
<u>Output:</u>
Enter number of item in the series-5
sum=3.550000
Answer: It is not working because it is missing the code needed to turn right.
Sentence :The robot would move forward two squares and would stay stuck there because it can not move forward nor turn left. You would need to add code for the robot to be able to turn right so that the robot can reach the goal
Answer:
The correct answer to the following question is option e.) Usenet.
Explanation:
Usenet - it is a collection of the user-submitted messages or notes on the various subject that posted to the servers on the worldwide network. Each of the subject collection of notes is known as newsgroups. There are thousands of the newsgroups which is possible for us to form the new one.
It works like the decentralized computer network which allows us to download our required files. We can also download and access the binary files along with the text post.
Answer:
b. a variable
Explanation:
A variable holds a specific type of data